.
All checks were successful
/ build-docker-image (push) Successful in 7s

This commit is contained in:
2024-09-05 08:45:26 +01:00
parent 23d6b9afc1
commit 5a09267782
2 changed files with 6 additions and 1 deletions

View File

@@ -7,8 +7,12 @@ RUN apt-get install python3-pip -y
RUN apt-get install python3-virtualenv -y RUN apt-get install python3-virtualenv -y
RUN pip3 install ansible --break-system-packages RUN pip3 install ansible --break-system-packages
RUN pip3 install ansible-runner --break-system-packages RUN pip3 install ansible-runner --break-system-packages
RUN mkdir /workspace RUN mkdir /workspace
RUN mkdir /scripts RUN mkdir /scripts
RUN mkdir /data
COPY scripts /scripts COPY scripts /scripts
COPY playbook-sample-workspace /workspace COPY playbook-sample-workspace /workspace
ENTRYPOINT ["python3", "/scripts/run-ansible-playbook.py"] ENTRYPOINT ["python3", "/scripts/run-ansible-playbook.py"]

View File

@@ -55,7 +55,8 @@ def build_cmdLine_args(rc):
def execute_playbook(): def execute_playbook():
rc = RunnerConfig( rc = RunnerConfig(
private_data_dir="/workspace" private_data_dir="/data",
project_dir="/workspace"
) )
rc.playbook=os.environ.get('ANSIBLE_PLAYBOOK', "site.yml") rc.playbook=os.environ.get('ANSIBLE_PLAYBOOK', "site.yml")