diff options
author | Bryan Newbold <bnewbold@archive.org> | 2022-06-22 20:57:51 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2022-06-22 21:00:08 -0700 |
commit | 5d201f7d9b55ff50753da2456634a3e51462ba1f (patch) | |
tree | 073a983bb2162b71af6270bb9d454d0341bf7272 /roles/git | |
parent | b64c159c3df815c361a19884d63ceba59b709990 (diff) | |
download | infra-5d201f7d9b55ff50753da2456634a3e51462ba1f.tar.gz infra-5d201f7d9b55ff50753da2456634a3e51462ba1f.zip |
refactor 'apt' tasks to newer syntax (not 'with_items')
Diffstat (limited to 'roles/git')
-rw-r--r-- | roles/git/tasks/cgit.yml | 11 | ||||
-rw-r--r-- | roles/git/tasks/git-daemon.yml | 4 | ||||
-rw-r--r-- | roles/git/tasks/gitolite.yml | 2 |
3 files changed, 8 insertions, 9 deletions
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 |