test local modules
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-02-28 08:43:50 +01:00
parent d2ff1df829
commit 00771b294a

View File

@ -42,16 +42,16 @@ steps:
GCE_CREDENTIALS_FILE: $HOME/ansible-testing.json GCE_CREDENTIALS_FILE: $HOME/ansible-testing.json
ANSIBLE_TIMEOUT: 60 ANSIBLE_TIMEOUT: 60
ANSIBLE_ROLES_PATH: /drone/src ANSIBLE_ROLES_PATH: /drone/src
ANSIBLE_LIBRARY: $HOME/custom_modules
commands: 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 - 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