ansible: first playbook
authorKristof Provost <kp@FreeBSD.org>
Wed, 3 May 2023 20:19:21 +0000 (22:19 +0200)
committerKristof Provost <kp@FreeBSD.org>
Wed, 3 May 2023 20:19:21 +0000 (22:19 +0200)
Install nginx, because we'll need something to serve web foo.

ansible/playbook.yaml [new file with mode: 0644]

diff --git a/ansible/playbook.yaml b/ansible/playbook.yaml
new file mode 100644 (file)
index 0000000..092acea
--- /dev/null
@@ -0,0 +1,13 @@
+- name: test playbook
+  hosts: domoticamachines
+  tasks:
+    - name: ping my hosts
+      ansible.builtin.ping:
+    - name: print message
+      ansible.builtin.debug:
+        msg: Hello World!
+    - name: Install nginx
+      community.general.pkgng:
+        name: nginx
+        state: present
+      become: true