kovalhome/infra/joplin/0001_software_playbook.yaml

25 lines
653 B
YAML
Raw Normal View History

2023-09-05 23:35:08 +00:00
- name: Setup Software
2023-09-04 18:59:57 +00:00
hosts: joplin
gather_facts: false
tasks:
2023-09-05 23:42:08 +00:00
- name: Wait for connection
ansible.builtin.wait_for:
host: "{{ inventory_hostname }}"
port: 22
timeout: 300
2023-09-06 00:11:31 +00:00
delegate_to: localhost
2023-09-06 23:00:36 +00:00
- name: Wait for 10s
ansible.builtin.wait_for:
timeout: 10
2023-09-06 23:05:11 +00:00
delegate_to: localhost
2023-09-06 23:00:36 +00:00
- name: Ping
ansible.builtin.shell: |
2023-09-06 23:11:49 +00:00
apt update && apt install -y iputils-ping
2023-09-06 23:00:36 +00:00
ping -c 5 {{ inventory_hostname }}
delegate_to: localhost
2023-09-04 18:59:57 +00:00
- name: Test some stuff
ansible.builtin.shell: |
touch ~/hmm
echo test > ~/test
echo test2 >> ~/test