New answers tagged

0 votes

Questions about Ansible connection to remote hosts

Sudo apt-get update sudo apt-get install ca-certificates curl apt-transport-https lsb-release gnupg -y curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/...
user avatar
  • 1
0 votes

Questions about Ansible connection to remote hosts

/*sudo apt-get update sudo apt-get install ca-certificates curl apt-transport-https lsb-release gnupg -y curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/...
user avatar
  • 1
1 vote

Including vault-encrypted variables in a task

Just ran into the same problem myself. Turns out, the error message is dead on: I made a copy-paste error. And sure enough, in the OP's case, the variable email has an odd number of chars. I think ...
user avatar
1 vote
Accepted

Ansible: How to run ad-hoc command with multiple environnements?

One of the options would be to change the current directory. This simplifies the structure and lets you keep common configuration and inventory for production and staging. For example, to run the ...
user avatar
0 votes

How can I set let's encrypt certificates with Ansible?

There was a couple mistakes in my task but this one is working. --- # Create the directories required by letsencrypt to store keys and certificates. - name: "Create required directories in /etc/...
user avatar
  • 33
0 votes

How to keep packages updated and keep in pace with security updates

You could use pre-made roles like this one or this one or this one to manage apt for system related security upgrades.
user avatar

Top 50 recent answers are included