[EDGEPOD-226] Add installing strongswan to router role
Also fixed ansible-lint failures
Change-Id: I78fbab0a9e2f45ea4f5989c255f09b47ef01bdcc
diff --git a/aether-playbook/roles/k8s/tasks/pre-install.yml b/aether-playbook/roles/k8s/tasks/pre-install.yml
index b0b2bfa..6f475e4 100644
--- a/aether-playbook/roles/k8s/tasks/pre-install.yml
+++ b/aether-playbook/roles/k8s/tasks/pre-install.yml
@@ -18,18 +18,25 @@
update_cache: yes
- name: Install ntp
- apt: name=ntp state=present
+ apt:
+ name: ntp
+ state: present
when: ntp_enabled | bool
tags: ntp
- name: Configure ntp file
- template: src=etc/ntp.conf.j2 dest=/etc/ntp.conf
+ template:
+ src: etc/ntp.conf.j2
+ dest: /etc/ntp.conf
when: ntp_enabled | bool
notify: restart ntp
tags: ntp
- name: Start the ntp service
- service: name=ntp state=started enabled=yes
+ service:
+ name: ntp
+ state: started
+ enabled: yes
when: ntp_enabled | bool
tags: ntp