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') --- roles/git/tasks/cgit.yml | 11 ++++++----- roles/git/tasks/git-daemon.yml | 4 +--- roles/git/tasks/gitolite.yml | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) (limited to 'roles/git') diff --git a/roles/git/tasks/cgit.yml b/roles/git/tasks/cgit.yml index 9d3f2db..40c5af7 100644 --- a/roles/git/tasks/cgit.yml +++ b/roles/git/tasks/cgit.yml @@ -1,10 +1,11 @@ - name: Install cgit package and deps (fcgi stuff) - apt: pkg={{ item }} state=installed - with_items: - - cgit - - fcgiwrap - - spawn-fcgi + apt: + state: present + name: + - cgit + - fcgiwrap + - spawn-fcgi tags: - dependencies diff --git a/roles/git/tasks/git-daemon.yml b/roles/git/tasks/git-daemon.yml index 793275c..b604401 100644 --- a/roles/git/tasks/git-daemon.yml +++ b/roles/git/tasks/git-daemon.yml @@ -1,8 +1,6 @@ - name: Install git-daemon-sysvinit package - apt: pkg={{ item }} state=installed - with_items: - - git-daemon-sysvinit + apt: name=git-daemon-sysvinit state=present tags: - dependencies diff --git a/roles/git/tasks/gitolite.yml b/roles/git/tasks/gitolite.yml index 09a6ac8..f926560 100644 --- a/roles/git/tasks/gitolite.yml +++ b/roles/git/tasks/gitolite.yml @@ -8,7 +8,7 @@ user: name=www-data groups=git append=yes - name: Install gitolite3 package - apt: pkg=gitolite3 state=installed + apt: name=gitolite3 state=present tags: - dependencies -- cgit v1.2.3