Commit 2e708284 authored by Kristopher Ruzic's avatar Kristopher Ruzic

Fix for msg: this module requires key=value arguments (['slapos', 'node',...

Fix for msg: this module requires key=value arguments (['slapos', 'node', 'format', '--now', '--alter_user=True'])

This module takes key value pairs, so we set the name to our service and arguments to the flags.
parent 2dec3aa9
- name: Install packages using apt
- name: Install packages using apt
apt: name=slapos-node state=present update_cache=yes cache_valid_time=3600 apt: name=slapos-node state=present update_cache=yes cache_valid_time=3600
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
...@@ -19,5 +18,5 @@ ...@@ -19,5 +18,5 @@
wait_for: host=127.0.0.1 port=8080 delay=10 wait_for: host=127.0.0.1 port=8080 delay=10
- name: Run slapos format for initial bootstrap - name: Run slapos format for initial bootstrap
service: "slapos node format --now --alter_user=True" service: name="slapos node format" arguments="--now --alter_user=True"
when: slapos_cfg.stat.exists == False when: slapos_cfg.stat.exists == False
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment