These roles have only been tested with:
- RedHat Linux
8
,7
- Ansible version:
2.10.3
In addition, the roles specifically target the RedHat OS
family, including CentOS
and Amazon Linux
, and may not function for other host OS's.
Contains two roles:
docker-setup
: Configure docker environment in target node(s).httpd-server-docker
: Configure httpd webserver inside httpd-centos container.
Require Ansible version 2.10.3 installed.
- Put target node IP in inventory file i.e host
[docker_host]
ip ansible_user=root ansible_ssh_pass=pass ansible_connection=ssh
- We can give any port we like, just need to edit the vars file
/roles/httpd-server-docker/vars/main.yml
port_for_httpd_svc: "3898"
- Run playbook
ansible-playbook setup.yml