kovalhome/infra/joplin/0001_docker_playbook.yaml

26 lines
636 B
YAML
Raw Normal View History

2023-09-04 21:14:10 +00:00
- name: Setup Docker
2023-09-04 21:19:50 +00:00
hosts: joplin
2023-09-04 21:23:12 +00:00
gather_facts: false
2023-09-04 21:14:10 +00:00
tasks:
2023-09-04 21:40:07 +00:00
- name: Debug
ansible.builtin.debug:
msg: "{{ inventory_hostname }}"
2023-09-04 21:14:10 +00:00
- name: Wait for connection
ansible.builtin.wait_for:
2023-09-04 21:40:07 +00:00
host: "{{ inventory_hostname }}"
port: 22
2023-09-04 21:14:10 +00:00
timeout: 300
2023-09-05 23:13:58 +00:00
- name: Wut
ansible.builtin.shell: |
ping -c 5 {{ inventory_hostname }}
args:
executable: /bin/bash
delegate_to: localhost
2023-09-04 21:14:10 +00:00
- name: Test some stuff
ansible.builtin.shell: |
touch ~/hmm
echo test > ~/test
echo test2 >> ~/test
args:
executable: /bin/bash