Copy files looping with destination path based on source destination
I am using the following files/
organization for an Ansible project for src
files to copy onto target (my roles all follow this scheme):
how to update serial value in a playbook that depends on the number of hosts in a group
my playbook looks like
how to update serial value in a playbook that depends on the number of hosts in a group
my playbook looks like
Identify if an environment variable is unset
I’m trying to write an ansible playbook to install my application. I’m trying to detect that an environment variable is unset. I know I can use the lookup
plugin to find an environment variable like this: lookup('env', 'FOO')
.
Identify if an environment variable is unset
I’m trying to write an ansible playbook to install my application. I’m trying to detect that an environment variable is unset. I know I can use the lookup
plugin to find an environment variable like this: lookup('env', 'FOO')
.
Identify if an environment variable is unset
I’m trying to write an ansible playbook to install my application. I’m trying to detect that an environment variable is unset. I know I can use the lookup
plugin to find an environment variable like this: lookup('env', 'FOO')
.
How to pick certain fields in a loop without tons of “skipping” lines
I’m trying to create an array in Ansible that contains all the AWS regions that are enabled in my account that support FSx for NetApp ONTAP (FSxN).
Ansible playbook or ansible adhoc command to update the X11 forwarding on all linux servers [duplicate]
This question already has answers here: How to cleanly edit sshd_config for basic security options in an ansible playbook? (6 answers) Ansible replacing a value in sshd_config (1 answer) Ansible to update sshd config file (2 answers) Closed last month. I new to ansible and looking to develop ansible playbook or ansible adhoc command to […]
Clarification around ansible rescue and how it continues the execution of tasks
I think i have a decent understanding of how rescue works in ansible, appears very similar to try/catch/finaly in other languages, but there is one specific detail from the documentation i don’t get.
Ansible switch between host targets with the same name
In our playbook we have a host named: backupserver
Lets assume we have a big list of inventories +- 100.
Now we have a new backupserver, so we end up with 2 different hosts: