This repository has been archived by the owner on May 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
3 changed files
with
23 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
# Ansible | ||
|
||
Docker image with [ansible-core](https://docs.ansible.com/ansible-core/devel/index.html) installed. | ||
Docker image with [ansible-core](https://docs.ansible.com/ansible-core/devel/index.html) installed. It can be used as base image for containers providing Ansible automations. | ||
|
||
Docker Hub: [fabos4ai/ansible-core](https://hub.docker.com/repository/docker/fabos4ai/ansible-core) | ||
|
||
An example can be found in the `example` directory: | ||
|
||
``` | ||
docker build -t ansible-example . | ||
docker run ansible-example | ||
``` |
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,7 @@ | ||
FROM fabos4ai/ansible-core:2.11.9 | ||
|
||
COPY src /src | ||
|
||
WORKDIR src | ||
|
||
CMD ansible-playbook main.yml |
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,6 @@ | ||
- name: "Example" | ||
hosts: localhost | ||
gather_facts: yes | ||
tasks: | ||
- debug: | ||
msg: "Simple Ansible automation running inside a container" |