Difference between revisions of "Ansible tasks:"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
- name: Shut down Debian flavored systems | - name: Shut down Debian flavored systems | ||
[[command:]] /sbin/shutdown -t now | [[command:]] /sbin/shutdown -t now | ||
− | [[when:]] [[ansible_facts]]['os_family'] == "Debian" | + | [[when: (Ansible)|when:]] [[ansible_facts]]['os_family'] == "Debian" |
== Related == | == Related == |
Latest revision as of 11:53, 8 September 2023
tasks: - name: Shut down Debian flavored systems command: /sbin/shutdown -t now when: ansible_facts['os_family'] == "Debian"
Related[edit]
/usr/bin/env ansible-playbook
- Ansible playbooks examples
include:
hosts:
when:
Azure Pipelines: task:
See also[edit]
- Ansible modules:
gather_facts, set_fact
,ansible.builtin.file
,lineinfile
,stat
,group
,mount
,git:
,package:
,command:
,shell:
,raw:
,template:
,register:
,user:
, Ansible playbooks examples,tasks:
,lineinfile, blockinfile:
,shell:
,command:
,raw:
,ansible.builtin.file, service:, aws.ecs_taskdefinition, aws.asg, docker_container, kubernetes.core.k8s
,community.
,include_tasks
- 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: