New answers tagged ansible
1
vote
How to skip play in ansible-playbook?
For those looking for a way to skip a play in Ansible (e.g. troubleshooting the second or third play during development), my workaround is to temporarily change the hosts setting to an unused group ...
0
votes
provided hosts list is empty, only localhost is available
You need to check for below possible issues :
hosts.ini ensure the format is correct, it should be something like this:
[demo]
192.168.1.100 ansible_ssh_port=22 ansible_ssh_user=root
You are ...
0
votes
Ansible Jinja2 evaluate string as template
The case you describe is not complete. Without the variable var defined you have to see the error message:
'var'' is undefined
The below play
- hosts: localhost
vars:
checks:
- name: &...
0
votes
How could I make ansible connection parameters dependent on the controller host?
My current best bet is like this:
ansible_connection: "{{ 'local' if lookup('pipe', 'hostname') == 'myclient1' else 'ssh' }}"
That will use the local connection plugin on myclient1, and ssh ...
Top 50 recent answers are included
Related Tags
ansible × 436linux × 31
docker × 27
ansible-inventory × 22
amazon-ec2 × 19
automation × 19
configuration-management × 16
amazon-web-services × 15
terraform × 15
jinja × 14
jenkins × 13
deployment × 13
yaml × 13
vagrant × 13
centos × 12
windows × 11
provisioning × 10
infrastructure-as-code × 9
ssh × 9
kubernetes × 8
security × 8
python × 8
puppet × 8
awx × 8
packer × 7