diff --git a/.drone.yml b/.drone.yml index e95439f..047f890 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: diff --git a/ansible.cfg b/ansible.cfg index 17bdc18..7303eb0 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,5 +1,6 @@ [ssh_connection] ssh_args = -o ControlMaster=auto -o ControlPersist=60s [defaults] -forks=2 +forks=10 pipelining = True +strategy = free diff --git a/run.sh b/run.sh index 9486db9..642631b 100644 --- a/run.sh +++ b/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