From 5d201f7d9b55ff50753da2456634a3e51462ba1f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 22 Jun 2022 20:57:51 -0700 Subject: refactor 'apt' tasks to newer syntax (not 'with_items') --- playbooks/init_adze.yml | 9 +++++---- playbooks/init_bnewbold_nsa.yml | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) (limited to 'playbooks') diff --git a/playbooks/init_adze.yml b/playbooks/init_adze.yml index 6850327..9df9fcd 100644 --- a/playbooks/init_adze.yml +++ b/playbooks/init_adze.yml @@ -37,10 +37,11 @@ with_file: - pubkeys/bnewbold.pub - name: Extra packages for this host - apt: name={{item}} state=installed - with_items: - - socat - - rsyslog + apt: + state: present + name: + - socat + - rsyslog post_tasks: - name: Sanity check that we have IPv4 connectivity diff --git a/playbooks/init_bnewbold_nsa.yml b/playbooks/init_bnewbold_nsa.yml index 7c2fb70..9529448 100644 --- a/playbooks/init_bnewbold_nsa.yml +++ b/playbooks/init_bnewbold_nsa.yml @@ -35,10 +35,11 @@ with_file: - pubkeys/bnewbold.pub - name: Extra packages for this host - apt: name={{item}} state=installed - with_items: - - socat - - rsyslog + apt: + state: present + name: + - socat + - rsyslog post_tasks: - name: Sanity check that we have IPv4 connectivity -- cgit v1.2.3