-
Notifications
You must be signed in to change notification settings - Fork 3
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
4 changed files
with
43 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,2 +1,4 @@ | ||
# Prerequisites | ||
OLD | ||
OLD/* | ||
*.bak |
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,13 @@ | ||
# stable/Dockerfile | ||
# | ||
# Build a Podman container image from the latest | ||
# stable version of Podman on the Fedoras Updates System. | ||
# https://bodhi.fedoraproject.org/updates/?search=podman | ||
# This image can be used to create a secured container | ||
# that runs safely with privileges within the container. | ||
# | ||
FROM quay.io/podman/stable | ||
|
||
RUN dnf install -y python3-pip python3-paramiko man-db less | ||
RUN python3 -m pip install ansible ansible-navigator | ||
RUN mkdir /home/podman/ansible |
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,2 +1,20 @@ | ||
# ansible-cli-container | ||
Container running ansible commandline utilities | ||
|
||
The intent of this repository is to create an easy to use container to learn how to deal with the new ansible tools | ||
|
||
# Howto | ||
|
||
Clone this repository and cd into it | ||
|
||
Create the container: | ||
|
||
``` | ||
$ podman build -t ansible-cli:latest . | ||
``` | ||
|
||
Run the container | ||
``` | ||
$ podman run -tid --name ans-cli --security-opt label=disable --user podman --device /dev/fuse -v my_local_dir:/home/podman:Z ansible-cli:latest | ||
$ podman exec -it ans-cli /bin/bash | ||
``` | ||
|
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,9 @@ | ||
--- | ||
ansible-navigator: | ||
execution-environment: | ||
container-engine: podman | ||
enabled: False | ||
logging: | ||
level: critical | ||
append: False | ||
file: /home/podman/ansible-navigator.log |