This commit is contained in:
parent
4e1833bbbf
commit
0c7aee832c
@ -26,6 +26,7 @@ steps:
|
||||
environment:
|
||||
ANSIBLE_HOST_KEY_CHECKING: "False"
|
||||
ANSIBLE_PRIVATE_KEY_FILE: "/drone/src/id_rsa"
|
||||
ANSIBLE_CONFIG: "/drone/src/ansible.cfg"
|
||||
ARTIFACTORY_APT_PASSWORD:
|
||||
from_secret: ARTIFACTORY_APT_PASSWORD
|
||||
settings:
|
||||
@ -39,6 +40,7 @@ steps:
|
||||
environment:
|
||||
ANSIBLE_HOST_KEY_CHECKING: "False"
|
||||
ANSIBLE_PRIVATE_KEY_FILE: "/drone/src/id_rsa"
|
||||
ANSIBLE_CONFIG: "/drone/src/ansible.cfg"
|
||||
ARTIFACTORY_APT_PASSWORD:
|
||||
from_secret: ARTIFACTORY_APT_PASSWORD
|
||||
settings:
|
||||
|
@ -1,5 +1,6 @@
|
||||
[ssh_connection]
|
||||
ssh_args = -o ControlMaster=auto -o ControlPersist=60s
|
||||
[defaults]
|
||||
forks=2
|
||||
forks=10
|
||||
pipelining = True
|
||||
strategy = free
|
||||
|
6
run.sh
6
run.sh
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
ansible-galaxy collection install -r requirements.yaml
|
||||
ansible-playbook --ask-become-pass --ask-pass -i inventory.yaml $1
|
||||
#ansible-playbook --ask-become-pass -i inventory.yaml $1
|
||||
#ansible-playbook --ask-become-pass --ask-pass -i inventory.yaml $1
|
||||
ANSIBLE_CONFIG: "$SCRIPT_DIR/ansible.cfg" ansible-playbook -i inventory.yaml $1
|
||||
|
Loading…
Reference in New Issue
Block a user