]> git.t-ch.net - malyna-ansible.git/commitdiff
functioning update playbook
authorLexie Malina <alex@t-ch.net>
Wed, 16 Aug 2023 22:40:33 +0000 (18:40 -0400)
committerLexie Malina <alex@t-ch.net>
Wed, 16 Aug 2023 22:40:33 +0000 (18:40 -0400)
ansible.cfg
update_system.ansible.yaml

index b2f0e3b6880e9a93d2ea99dfcea31e1135471645..1e36e6f9d969718d55efd0fc66fc6c70548d4015 100644 (file)
 ;become_ask_pass=False
 
 # (string) executable to use for privilege escalation, otherwise Ansible will depend on PATH
-become_exe=doas
+become_exe = doas
 
 # (string) Flags to pass to the privilege escalation executable.
 ;become_flags=
index f87bb91d10c7cfa325f94c7e00c053af8567d7fc..415d3a0f7f9b6cf504c237f32c3716a1846e2cbe 100644 (file)
@@ -2,9 +2,11 @@
 
 - name: Update system
   hosts: malyna
+  vars:
+    ansible_become_method: doas
   tasks:
     - name: Update apk packages & cache
       become: true
       apk:
         update_cache: true
-        upgrade: true
\ No newline at end of file
+        upgrade: true