-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fba0c8a
commit fb10471
Showing
12 changed files
with
116 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
|
||
- hosts: localhost | ||
become: false | ||
gather_facts: false | ||
tasks: | ||
- name: Listing files in directory | ||
ansible.builtin.command: 'ls -l /play' | ||
register: job1 | ||
|
||
- name: Show response | ||
ansible.builtin.debug: | ||
var: job1.stdout_lines | ||
|
||
- name: Add config file | ||
ansible.builtin.copy: | ||
content: | | ||
# ansible_managed | ||
# this is some config.. | ||
key={{ job_value | default('no') }} | ||
dest: '/tmp/awtest.txt' | ||
mode: 0640 | ||
|
||
- name: Wait some time | ||
ansible.builtin.pause: | ||
seconds: 30 | ||
|
||
- name: Remove file | ||
ansible.builtin.file: | ||
path: '/tmp/awtest.txt' | ||
state: absent | ||
|
||
|
||
- name: Output some information | ||
ansible.builtin.debug: | ||
msg: 'Ansible-WebUI DEMO' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
AW_ADMIN='USER' | ||
AW_ADMIN_PWD='PWD' | ||
|
||
echo '### REMOVING EXISTING ###' | ||
if docker ps -a | grep -q ansible-webui | ||
then | ||
docker stop ansible-webui | ||
docker rm ansible-webui | ||
fi | ||
if docker image ls | grep -q ansible-webui | ||
then | ||
docker image rm ansible-webui:latest | ||
fi | ||
|
||
echo '### BUILDING LATEST ###' | ||
cd /tmp | ||
rm -rf /tmp/ansible-webui | ||
git clone https://github.com/ansibleguy/ansible-webui.git | ||
cd /tmp/ansible-webui/docker | ||
docker build -f Dockerfile_production -t ansible-webui:latest --build-arg "AW_VERSION=latest" . | ||
|
||
echo '### STARTING ###' | ||
docker run -d --restart unless-stopped --name ansible-webui --publish 8000:8000 --volume /var/local/ansible-webui/:/data --volume /var/local/ansible-webui/play/:/play --env AW_ADMIN_PWD="$AW_ADMIN_PWD" --env AW_ADMIN="$AW_ADMIN" ansible-webui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters