Added dockerfile and moved scripts
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
FROM ubuntu:20.04 as base
|
||||
ENV ANSIBLE_VERSION 2.9.17
|
||||
RUN apt-get update; \
|
||||
apt-get install -y gcc python3 sshpass; \
|
||||
apt-get install -y python3-pip; \
|
||||
apt-get clean all
|
||||
RUN pip3 install --upgrade pip; \
|
||||
pip3 install "ansible==${ANSIBLE_VERSION}"; \
|
||||
pip3 install ansible;
|
||||
|
||||
FROM base as update
|
||||
|
||||
WORKDIR /ansible
|
||||
|
||||
COPY . .
|
||||
@@ -3,6 +3,7 @@ nocows = True
|
||||
roles_path = ./roles
|
||||
inventory = ./inventory/my-cluster/hosts.ini
|
||||
stdout_callback = yaml
|
||||
interpreter_python = auto_silent
|
||||
|
||||
remote_tmp = $HOME/.ansible/tmp
|
||||
local_tmp = $HOME/.ansible/tmp
|
||||
@@ -21,3 +22,4 @@ retries = 3
|
||||
ssh_args = -o ControlMaster=auto -o ControlPersist=30m -o Compression=yes -o ServerAliveInterval=15s
|
||||
pipelining = True
|
||||
control_path = %(directory)s/%%h-%%r
|
||||
host_key_checking = False
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
ansible-playbook site.yml -i inventory/my-cluster/hosts.ini
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
ansible-playbook site.yml -i inventory/my-cluster/hosts.ini
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
ansible-playbook playbook-lxc-update.yml -i inventory/my-cluster/hosts.ini --ask-vault-pass
|
||||
Reference in New Issue
Block a user