https://github.com/neilkuan/ansible-lab-container-on-centos7
https://github.com/neilkuan/ansible-lab-container-on-centos7
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/neilkuan/ansible-lab-container-on-centos7
- Owner: neilkuan
- Created: 2020-07-16T12:40:44.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-16T12:52:56.000Z (almost 5 years ago)
- Last Synced: 2025-03-29T02:38:24.982Z (2 months ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Note
container need to run on `centos`.
> tools
> - docker
> - docker-compose## Clone project
```bash
git clone https://github.com/guan840912/ansible-lab-container-on-centos7.gitcd nsible-lab-container-on-centos7
```Start Lab .
```bash
# run server
$ docker-compose up -d$ docker exec -it ansible-server bash
[container] : pip install ansible
[container] : cd ~/ansible
[container] : ansible -i host -m ping
[container] : ansible-playbook -i host nginx-install.yml -vv
```
Close Lab .
```bash
$ dokcer-compose down
```