hello_world

Add the following:

/etc/ansible/hosts:

[myhost]
104.130.141.152

HelloWorld.yml:

---
- name: This is a hello-world example
  hosts: myhost
  remote_user: rack
  become: true
  become_method: sudo
  become_user: root
  tasks:
  - name: Create a file called '/tmp/testfile.txt' with the content 'hello world'.
    copy:
      content: "hello world\n"
      dest: /tmp/testfile.txt

Copy key to device:

ssh-copy-id rack@104.130.141.152

Run playbook:

ansible-playbook HelloWorld.yml