This commit is contained in:
@@ -7,8 +7,12 @@ RUN apt-get install python3-pip -y
|
||||
RUN apt-get install python3-virtualenv -y
|
||||
RUN pip3 install ansible --break-system-packages
|
||||
RUN pip3 install ansible-runner --break-system-packages
|
||||
|
||||
RUN mkdir /workspace
|
||||
RUN mkdir /scripts
|
||||
RUN mkdir /data
|
||||
|
||||
COPY scripts /scripts
|
||||
COPY playbook-sample-workspace /workspace
|
||||
|
||||
ENTRYPOINT ["python3", "/scripts/run-ansible-playbook.py"]
|
||||
|
||||
@@ -55,7 +55,8 @@ def build_cmdLine_args(rc):
|
||||
def execute_playbook():
|
||||
|
||||
rc = RunnerConfig(
|
||||
private_data_dir="/workspace"
|
||||
private_data_dir="/data",
|
||||
project_dir="/workspace"
|
||||
)
|
||||
|
||||
rc.playbook=os.environ.get('ANSIBLE_PLAYBOOK', "site.yml")
|
||||
|
||||
Reference in New Issue
Block a user