New answers tagged ansible
1
vote
Accepted
Conflicts while building AWX-EE custom image
nutanix.ncp creates conflicts cause it's the only collection I use that specify python module version requests~=2.26.0
I finally create a new AWX-EE custom image without nutanix.ncp in requirements....
0
votes
Accepted
Creating a cmd task with all the private ip address details collected from gather_facts
Q: "Run a set_facts command which will get private ip from each host."
A: You can either run a command, for example,
- shell: 'ifconfig em0 | grep inet | cut -w -f3'
register: out
and ...
0
votes
Applying ansible playbook to a docker container on a remote host
I have achieved the same goal but a bit more securely, by forwarding the unix socket (but not a tcp socket). However it is a bit convoluted. The following example contains everything from starting an ...
1
vote
Using a different Python version in AWX
AWX is running in a docker container, isn't it?
If you make a venv on your ansible controller with python3.9 it still won't be functional. To get this to work, you will have to add your actual host (...
0
votes
ansible_become has no effect despite the ability to execute sudo on GCP hosts
Running ansible with -vvv will tell you which ansible config you're using
For instance
me@mycomputer:~$ ansible -vvv -m setup localhost
ansible 2.10.8
config file = None
shows that I'm not using ...
0
votes
How to test production Ansible execution without having to provision target
This would be a good case for doing a blue-green deployment, it's twice the cost , but half the hassle of having to deploy into production. Plus you get near instant backups.
If you can't trust what ...
1
vote
Use an asymmetric cypher to secure Ansible vault
Another solution, which would allow you to accomplish the same goals, would be to encrypt your facts files with Mozilla SOPS.
SOPS does a good job of just encrypting parts of the files that you want ...
Top 50 recent answers are included
Related Tags
ansible × 445linux × 30
docker × 28
ansible-inventory × 23
amazon-ec2 × 20
automation × 19
amazon-web-services × 16
terraform × 16
configuration-management × 16
jenkins × 14
vagrant × 14
deployment × 13
windows × 13
yaml × 13
jinja × 13
centos × 12
provisioning × 10
awx × 10
kubernetes × 9
security × 9
python × 9
puppet × 9
ssh × 9
infrastructure-as-code × 8
ansible-vault × 8