Difference between revisions of "When: (Ansible)"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
* <code>[[gather_facts:]]</code> | * <code>[[gather_facts:]]</code> | ||
* <code>[[register:]]</code> | * <code>[[register:]]</code> | ||
+ | * <code>[[when: (GitLab)]] | ||
== See also == | == See also == |
Revision as of 11:35, 5 July 2022
https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html
tasks: - name: Shut down Debian flavored systems ansible.builtin.command: /sbin/shutdown -t now when: ansible_facts['os_family'] == "Debian"
Related terms
See also
- Ansible: modules, plugins, Playbooks (examples)
ansible-playbook
, ansible-vault
, ansible-inventory
, ansible-config
, Ansible Tower, Ansible Galaxy (Roles) (ansible-galaxy
), ansible-cmdb
, gather facts
, ansible.cfg
, Ansible Molecule
, Ansible collections, register
, template
, --ask-pass
, --ask-become-pass
, remote_user:
, /etc/ansible/hosts
, ansible-doc
, ansible-lint
, .ansible/
, --forks
, --start-at-task
, changelog
, inventory
, Notify:
, ansible HOSTNAME -m ping
, gathering
, /usr/bin/ansible
, ansible -m ping
, ansible.builtin
, hosts: (Ansible)
, set fact:
, when:
, blockinfile:
, become method:
, include:
, git:
, AWX, ansible --help
, Tags, Ansible variables, versions
Advertising: