diff options
author | Ole Mathias Heggem <olemathias.aa.heggem@gmail.com> | 2023-11-23 20:14:24 +0100 |
---|---|---|
committer | Ole Mathias Heggem <olemathias.aa.heggem@gmail.com> | 2023-11-23 20:14:24 +0100 |
commit | abd3fba2abb66738c9eac00d3ed86e965584e4a8 (patch) | |
tree | e72f1a30dfec9295f0e09812d73b50c2f2a3973d /ansible/roles/common | |
parent | 09710c061d5b8ae86b3dfe49f4b8936c13a10535 (diff) |
fix: cleanup and format ansible playbook
Diffstat (limited to 'ansible/roles/common')
-rw-r--r-- | ansible/roles/common/tasks/main.yml | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml index 4c27c32..619d39f 100644 --- a/ansible/roles/common/tasks/main.yml +++ b/ansible/roles/common/tasks/main.yml @@ -1,15 +1,20 @@ - name: Install basic packages - apt: - name: [ - 'curl', - 'vim', - 'git', - 'iptables-persistent'] - state: present + ansible.builtin.apt: + name: [ + 'curl', + 'vim', + 'git', + 'iptables-persistent'] + state: present - name: Gondul-repo become: true tags: - - git-all - - git-gondul - git: repo={{ git_repo }} dest=/opt/gondul update=no accept_hostkey=yes version={{ git_branch }} + - git-all + - git-gondul + ansible.builtin.git: + repo: "{{ git_repo }}" + dest: /opt/gondul + update: false + accept_hostkey: true + version: "{{ git_branch }}"
\ No newline at end of file |