From eaec9b5a75d7c32d2899b9d4f0c61afdb8fd89ab Mon Sep 17 00:00:00 2001 From: Lexie Malina Date: Wed, 16 Aug 2023 18:40:33 -0400 Subject: [PATCH] functioning update playbook --- ansible.cfg | 2 +- update_system.ansible.yaml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ansible.cfg b/ansible.cfg index b2f0e3b..1e36e6f 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -525,7 +525,7 @@ ;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= diff --git a/update_system.ansible.yaml b/update_system.ansible.yaml index f87bb91..415d3a0 100644 --- a/update_system.ansible.yaml +++ b/update_system.ansible.yaml @@ -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 -- 2.42.0