kovalhome/infra/joplin/0001_docker_playbook.yaml

20 lines
475 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
- name: Test some stuff
ansible.builtin.shell: |
touch ~/hmm
echo test > ~/test
echo test2 >> ~/test
args:
executable: /bin/bash