Difference between revisions of "Ansible example: Install software"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 1: | Line 1: | ||
#!/usr/bin/env ansible-playbook | #!/usr/bin/env ansible-playbook | ||
− | - hosts: localhost | + | - [[hosts:]] localhost |
become: yes | become: yes | ||
Revision as of 07:50, 5 April 2021
#!/usr/bin/env ansible-playbook - hosts: localhost become: yes tasks: - package: name: sysstat state: present
Related terms
See also
- 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
Advertising: