blob: 274c22b88f30b3a1d349fc867a0a9c638efde24b [file] [log] [blame]
- hosts: all
tasks:
- name: sp-whoami-hostname
shell:
cmd: hostname
- name: sp-whoami-id
shell:
cmd: id
- name: sp-whereami-pwd
shell:
cmd: pwd
- name: sp-dump-ansible-facts
ansible.builtin.debug:
var: hostvars
- hosts: localhost
connection: local
vars:
host_id: "{{ hostvars['tempest']['nodepool']['external_id'] }}"
storprep_filename: "/tmp/storprep-bootstrap-{{ host_id }}.sh"
tasks:
- name: ctrl-sp-whoami-hostname
shell:
cmd: hostname || true
- name: ctrl-sp-fetch-storprep
shell:
cmd: curl -C - -o '{{ storprep_filename }}' -- https://spfactory.storpool.com/sp-osci/storprep-bootstrap-sh.txt
- name: ctrl-sp-run-storprep
shell:
cmd: sh '{{ storprep_filename }}' -- -n lab-charmed-testing-storage -s lab-vlan400 -- {{ host_id }}
- name: ctrl-sp-rm-storprep
shell:
cmd: rm -- '{{ storprep_filename }}'
- hosts: all
tasks:
- name: sp-processes
shell:
cmd: ps awwfux
- name: sp-processes-pstree
shell:
cmd: pstree -l