Refactor CI pipelien and enable molecule testing #1
@ -49,13 +49,13 @@ steps:
|
|||||||
ANSIBLE_ROLES_PATH: /drone/src
|
ANSIBLE_ROLES_PATH: /drone/src
|
||||||
ANSIBLE_LIBRARY: /drone/src/custom_modules
|
ANSIBLE_LIBRARY: /drone/src/custom_modules
|
||||||
commands:
|
commands:
|
||||||
- ansible --version
|
|
||||||
- mkdir $HOME/.ssh
|
- mkdir $HOME/.ssh
|
||||||
- echo "$GCE_SSH_KEY" > $HOME/.ssh/google_compute_engine
|
- echo "$GCE_SSH_KEY" > $HOME/.ssh/google_compute_engine
|
||||||
- chmod 600 $HOME/.ssh/google_compute_engine
|
- chmod 600 $HOME/.ssh/google_compute_engine
|
||||||
- echo "$GCE_CREDENTIALS_JSON" > $HOME/ansible-testing.json
|
- echo "$GCE_CREDENTIALS_JSON" > $HOME/ansible-testing.json
|
||||||
- pip install apache-libcloud pycrypto --user
|
- pip install apache-libcloud pycrypto --user
|
||||||
- molecule create --scenario-name gce-centos-7
|
- molecule create --scenario-name gce-centos-7
|
||||||
|
- ansible --version
|
||||||
- molecule converge --scenario-name gce-centos-7
|
- molecule converge --scenario-name gce-centos-7
|
||||||
- molecule verify --scenario-name gce-centos-7
|
- molecule verify --scenario-name gce-centos-7
|
||||||
- molecule destroy --scenario-name gce-centos-7
|
- molecule destroy --scenario-name gce-centos-7
|
||||||
|
Loading…
Reference in New Issue
Block a user