aboutsummaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorLasse Haugen <haugen.lasse@gmail.com>2019-01-14 23:06:41 +0100
committerLasse Haugen <haugen.lasse@gmail.com>2019-01-14 23:06:41 +0100
commitffd8a012c81534fe39eae2a8033679d15ca92abc (patch)
treeace8366f24d6986649f3ecb779d5a09681d57e5a /ansible
parentaedafb4fb169be914782e4b72503e655b7e1bc41 (diff)
change to apt module
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/common/tasks/main.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml
index 7b402c3..e573383 100644
--- a/ansible/roles/common/tasks/main.yml
+++ b/ansible/roles/common/tasks/main.yml
@@ -6,10 +6,10 @@
git: repo={{ git_repo }} dest=/opt/gondul update=no accept_hostkey=yes version={{ git_branch }}
- name: Install basic packages
- action: >
- {{ ansible_pkg_mgr }} name={{ item }} state=present update_cache=yes
- with_items:
- - curl
- - vim
- - git
- - iptables-persistent \ No newline at end of file
+ apt:
+ name: [
+ 'curl',
+ 'vim',
+ 'git',
+ 'iptables-persistent']
+ state: present