kovalhome/infra/joplin/0001_software_playbook.yaml

26 lines
638 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:
- name: Debug
ansible.builtin.debug:
msg: "{{ inventory_hostname }}"
- name: Wait for connection
ansible.builtin.wait_for:
host: "{{ inventory_hostname }}"
port: 22
timeout: 300
- name: Wut
ansible.builtin.shell: |
ping -c 5 {{ inventory_hostname }}
args:
executable: /bin/bash
delegate_to: localhost
- name: Test some stuff
ansible.builtin.shell: |
touch ~/hmm
echo test > ~/test
echo test2 >> ~/test
args:
executable: /bin/bash