Run storprep as root, maybe?
Change-Id: I8fb27160fd52a24f02792deb0b41eef39f8b4649
diff --git a/playbooks/sp-init.yaml b/playbooks/sp-init.yaml
index 93a0e77..b2229c4 100644
--- a/playbooks/sp-init.yaml
+++ b/playbooks/sp-init.yaml
@@ -21,19 +21,19 @@
tasks:
- name: ctrl-sp-whoami-hostname
shell:
- cmd: hostname
+ cmd: hostname || true
- name: ctrl-sp-whoami-id
shell:
- cmd: id
+ cmd: id || true
- name: ctrl-sp-whereami-pwd
shell:
- cmd: pwd
+ cmd: pwd || true
- name: ctrl-sp-python3
shell:
- cmd: python3 --version
+ cmd: python3 --version || true
- name: ctrl-sp-dump-ansible-facts
ansible.builtin.debug:
@@ -42,6 +42,7 @@
- name: ctrl-sp-storprep
shell:
cmd: /var/lib/storprep/bin/storprep -n lab-charmed-testing-storage -s lab-vlan400 -- {{ hostvars['tempest']['nodepool']['external_id'] }}
+ become: true
- hosts: all
tasks: