This commit is contained in:
parent
d2ff1df829
commit
00771b294a
@ -42,16 +42,16 @@ steps:
|
||||
GCE_CREDENTIALS_FILE: $HOME/ansible-testing.json
|
||||
ANSIBLE_TIMEOUT: 60
|
||||
ANSIBLE_ROLES_PATH: /drone/src
|
||||
ANSIBLE_LIBRARY: $HOME/custom_modules
|
||||
commands:
|
||||
- git clone https://gitea.rknet.org/ansible/custom_modules $HOME/custom_modules
|
||||
- mkdir -p $HOME/.ansible/plugins/modules/
|
||||
- git clone https://gitea.rknet.org/ansible/custom_modules $HOME/.ansible/plugins/modules/
|
||||
- ansible-doc -t module iptables_raw
|
||||
- mkdir $HOME/.ssh
|
||||
- echo "$GCE_SSH_KEY" > $HOME/.ssh/google_compute_engine
|
||||
- chmod 600 $HOME/.ssh/google_compute_engine
|
||||
- echo "$GCE_CREDENTIALS_JSON" > $HOME/ansible-testing.json
|
||||
- pip install apache-libcloud pycrypto --user
|
||||
- molecule create --scenario-name gce-centos-7
|
||||
- ansible --version
|
||||
- molecule converge --scenario-name gce-centos-7
|
||||
- molecule verify --scenario-name gce-centos-7
|
||||
- molecule destroy --scenario-name gce-centos-7
|
||||
|
Loading…
Reference in New Issue
Block a user