ansible ssh settings in nightly run
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
45bcc63b43
commit
03f62c876c
14
.drone.yml
14
.drone.yml
@ -3,6 +3,14 @@ type: docker
|
|||||||
name: ansible
|
name: ansible
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: setup environment
|
||||||
|
image: ubuntu
|
||||||
|
environment:
|
||||||
|
SSH_USER:
|
||||||
|
from_secret: SSH_USER
|
||||||
|
commands:
|
||||||
|
- echo "$SSH_KEY" > $PWD/id_rsa && chmod 0600 $PWD/id_rsa
|
||||||
|
|
||||||
- name: check ansible syntax
|
- name: check ansible syntax
|
||||||
image: plugins/ansible:3
|
image: plugins/ansible:3
|
||||||
settings:
|
settings:
|
||||||
@ -13,6 +21,9 @@ steps:
|
|||||||
|
|
||||||
- name: run playbook in check mode
|
- name: run playbook in check mode
|
||||||
image: plugins/ansible:3
|
image: plugins/ansible:3
|
||||||
|
environment:
|
||||||
|
ANSIBLE_HOST_KEY_CHECKING: "False"
|
||||||
|
ANSIBLE_PRIVATE_KEY_FILE: "/drone/src/id_rsa"
|
||||||
settings:
|
settings:
|
||||||
playbook: nightly.yaml
|
playbook: nightly.yaml
|
||||||
galaxy: requirements.yaml
|
galaxy: requirements.yaml
|
||||||
@ -21,6 +32,9 @@ steps:
|
|||||||
|
|
||||||
- name: ansible nightly run
|
- name: ansible nightly run
|
||||||
image: plugins/ansible:3
|
image: plugins/ansible:3
|
||||||
|
environment:
|
||||||
|
ANSIBLE_HOST_KEY_CHECKING: "False"
|
||||||
|
ANSIBLE_PRIVATE_KEY_FILE: "/drone/src/id_rsa"
|
||||||
settings:
|
settings:
|
||||||
playbook: nightly.yaml
|
playbook: nightly.yaml
|
||||||
galaxy: requirements.yaml
|
galaxy: requirements.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user