99c4e02ecf
Name it instead "topics" so it won't be strange if some topics included "exercises" directory.
505 B
505 B
My first playbook - Solution
vi first_playbook.yml
- name: Install zlib and create a file
hosts: some_remote_host
tasks:
- name: Install zlib
package:
name: zlib
state: present
become: yes
- name: Create the file /tmp/some_file
path: '/tmp/some_file'
state: touch
- First, edit the inventory file:
vi /etc/ansible/hosts
[some_remote_host]
some.remoted.host.com
Run the playbook
ansible-playbook first_playbook.yml