Answers for "ansible playbook omit tag"

0

run a tag with ansible

ansible-playbook myplay.yaml --tags mytag
Posted by: Guest on March-12-2021
0

ansible playbook omit tag

# Use the --skip-tags flag 
ansible-playbook myplaybook.yaml --skip-tags mytag
Posted by: Guest on March-26-2021
0

how to use tags in ansible

# Tags goes at same indentation as name or service: 
- name: Create Postgres Container 
  tags: createcontainer
  docker_container:
    name: mypostgres
    ...
# Then in the command line:
ansible-playbook myplaybook.yaml --tags createcontainer
Posted by: Guest on March-09-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language