Difference between revisions of "Ansible tasks:"
Jump to navigation
Jump to search
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
+ | |||
+ | [[tasks:]] | ||
+ | - name: Shut down Debian flavored systems | ||
+ | [[command:]] /sbin/shutdown -t now | ||
+ | [[when: (Ansible)|when:]] [[ansible_facts]]['os_family'] == "Debian" | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[/usr/bin/env ansible-playbook]]</code> | ||
+ | * [[Ansible playbooks examples]] | ||
+ | * <code>[[include:]]</code> | ||
+ | * <code>[[hosts:]]</code> | ||
+ | * <code>[[when:]]</code> | ||
+ | * <code>[[Azure Pipelines: task:]]</code> | ||
== See also == | == See also == | ||
+ | * {{ansible modules}} | ||
* {{Ansible}} | * {{Ansible}} | ||
[[Category:Ansible]] | [[Category:Ansible]] |
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: