apply ansible config
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Torma Kristóf 2023-03-05 18:32:21 +01:00
parent 4e1833bbbf
commit 0c7aee832c
3 changed files with 8 additions and 3 deletions

View File

@ -26,6 +26,7 @@ steps:
environment: environment:
ANSIBLE_HOST_KEY_CHECKING: "False" ANSIBLE_HOST_KEY_CHECKING: "False"
ANSIBLE_PRIVATE_KEY_FILE: "/drone/src/id_rsa" ANSIBLE_PRIVATE_KEY_FILE: "/drone/src/id_rsa"
ANSIBLE_CONFIG: "/drone/src/ansible.cfg"
ARTIFACTORY_APT_PASSWORD: ARTIFACTORY_APT_PASSWORD:
from_secret: ARTIFACTORY_APT_PASSWORD from_secret: ARTIFACTORY_APT_PASSWORD
settings: settings:
@ -39,6 +40,7 @@ steps:
environment: environment:
ANSIBLE_HOST_KEY_CHECKING: "False" ANSIBLE_HOST_KEY_CHECKING: "False"
ANSIBLE_PRIVATE_KEY_FILE: "/drone/src/id_rsa" ANSIBLE_PRIVATE_KEY_FILE: "/drone/src/id_rsa"
ANSIBLE_CONFIG: "/drone/src/ansible.cfg"
ARTIFACTORY_APT_PASSWORD: ARTIFACTORY_APT_PASSWORD:
from_secret: ARTIFACTORY_APT_PASSWORD from_secret: ARTIFACTORY_APT_PASSWORD
settings: settings:

View File

@ -1,5 +1,6 @@
[ssh_connection] [ssh_connection]
ssh_args = -o ControlMaster=auto -o ControlPersist=60s ssh_args = -o ControlMaster=auto -o ControlPersist=60s
[defaults] [defaults]
forks=2 forks=10
pipelining = True pipelining = True
strategy = free

6
run.sh
View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
ansible-galaxy collection install -r requirements.yaml ansible-galaxy collection install -r requirements.yaml
ansible-playbook --ask-become-pass --ask-pass -i inventory.yaml $1 #ansible-playbook --ask-become-pass --ask-pass -i inventory.yaml $1
#ansible-playbook --ask-become-pass -i inventory.yaml $1 ANSIBLE_CONFIG: "$SCRIPT_DIR/ansible.cfg" ansible-playbook -i inventory.yaml $1