Difference between revisions of "Write your first ansible playbook"
Jump to navigation
Jump to search
(Created page with " == See also == * {{ansible}} Category:Ansible") |
|||
Line 1: | Line 1: | ||
− | + | [root@localhost ansible]# vim name.yml | |
+ | And provide the yml code in that file | ||
+ | --- | ||
+ | - name: name | ||
+ | hosts: linux | ||
+ | tasks: | ||
+ | - name: ensure nano is there | ||
+ | yum : | ||
+ | name: nano | ||
+ | state: latest | ||
Revision as of 14:52, 11 August 2022
[root@localhost ansible]# vim name.yml And provide the yml code in that file --- - name: name hosts: linux tasks: - name: ensure nano is there yum : name: nano state: latest
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: