Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rhmk committed Oct 5, 2021
1 parent 3d4f12f commit 6baf2ee
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Prerequisites
OLD
OLD/*
*.bak
13 changes: 13 additions & 0 deletions Dockerfile
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
20 changes: 19 additions & 1 deletion README.md
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
```

9 changes: 9 additions & 0 deletions ansible-navigator.yml
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

0 comments on commit 6baf2ee

Please sign in to comment.