Add a job that sets up a Juju client
Change-Id: I5c1d92bdcf68e930af11b7ff5189dd553591569c
diff --git a/playbooks/setup-juju-client/pre.yaml b/playbooks/setup-juju-client/pre.yaml
new file mode 100644
index 0000000..c3e4c7d
--- /dev/null
+++ b/playbooks/setup-juju-client/pre.yaml
@@ -0,0 +1,11 @@
+- hosts: all
+ tasks:
+ # TODO: snap module is part of the community collection
+ - name: Install juju
+ ansible.builtin.command: snap install juju --classic
+ become: true
+
+ - name: Log In to the Controller
+ ansible.builtin.shell: echo -e "y\n{{ juju_secret['the_secret'] }}\n" | juju login 10.40.2.2:17070 --controller maas-controller --user zuul-nodepool-zaza
+ args:
+ executable: /usr/bin/bash