kovalhome/infra/joplin/0001_software_playbook.yaml

28 lines
693 B
YAML

- name: Setup Software
hosts: joplin
gather_facts: false
tasks:
- name: Debug
ansible.builtin.debug:
msg: "{{ inventory_hostname }}"
- name: Wut
ansible.builtin.shell: |
apt update
apt install -y iputils-ping
ping -c 5 {{ inventory_hostname }}
args:
executable: /bin/bash
delegate_to: localhost
- name: Wait for connection
ansible.builtin.wait_for:
host: "{{ inventory_hostname }}"
port: 22
timeout: 300
- name: Test some stuff
ansible.builtin.shell: |
touch ~/hmm
echo test > ~/test
echo test2 >> ~/test
args:
executable: /bin/bash