This commit is contained in:
parent
3091398f40
commit
41d1399060
12
.drone.yml
12
.drone.yml
@ -11,6 +11,11 @@ trigger:
|
|||||||
- push
|
- push
|
||||||
- custom
|
- custom
|
||||||
|
|
||||||
|
environment:
|
||||||
|
ANSIBLE_FORCE_COLOR: true
|
||||||
|
ANSIBLE_HOME: /drone/src/.ansible
|
||||||
|
ANSIBLE_VAULT_PASSWORD_FILE: "/drone/src/vault_pass"
|
||||||
|
|
||||||
node:
|
node:
|
||||||
ansible: "true"
|
ansible: "true"
|
||||||
|
|
||||||
@ -31,19 +36,14 @@ steps:
|
|||||||
- name: Prepare Runner
|
- name: Prepare Runner
|
||||||
image: registry.tobiasmanske.de/ansible-runner:latest
|
image: registry.tobiasmanske.de/ansible-runner:latest
|
||||||
pull: always
|
pull: always
|
||||||
environment:
|
|
||||||
ANSIBLE_VAULT_PASSWORD_FILE: "/drone/src/vault_pass"
|
|
||||||
ANSIBLE_FORCE_COLOR: "true"
|
|
||||||
commands:
|
commands:
|
||||||
- cd coreos-config
|
- cd coreos-config
|
||||||
|
- mkdir $ANSIBLE_HOME
|
||||||
- ansible-galaxy install -r requirements.yaml
|
- ansible-galaxy install -r requirements.yaml
|
||||||
- ansible-playbook --private-key ../ssh_key --inventory=inventory.yaml runner-pre.yaml
|
- ansible-playbook --private-key ../ssh_key --inventory=inventory.yaml runner-pre.yaml
|
||||||
- name: Run Ansible
|
- name: Run Ansible
|
||||||
image: registry.tobiasmanske.de/ansible-runner:latest
|
image: registry.tobiasmanske.de/ansible-runner:latest
|
||||||
pull: always
|
pull: always
|
||||||
environment:
|
|
||||||
ANSIBLE_VAULT_PASSWORD_FILE: "/drone/src/vault_pass"
|
|
||||||
ANSIBLE_FORCE_COLOR: "true"
|
|
||||||
commands:
|
commands:
|
||||||
- cd coreos-config
|
- cd coreos-config
|
||||||
- ansible-playbook --limit ci_apply --private-key ../ssh_key --inventory=inventory.yaml playbook.yaml
|
- ansible-playbook --limit ci_apply --private-key ../ssh_key --inventory=inventory.yaml playbook.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user