Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Latest commit

 

History

History
52 lines (36 loc) · 1.04 KB

README.md

File metadata and controls

52 lines (36 loc) · 1.04 KB

Ansible provisioned machine

create a new environment configuration:

$ footloose config create --replicas 1

deploy container images:

$ footloose create
INFO[0000] Pulling image: quay.io/footloose/centos7 ...
INFO[0007] Creating machine: cluster-node0 ...

test the ansible setup:

$ ansible -m ping all
cluster-node0 | SUCCESS => {
    "changed": false, 
    "ping": "pong"
}

run the provisioning playbook:

$ ansible-playbook  example1.yml

PLAY [Install nginx] ****************************

TASK [Gathering Facts] **************************
ok: [cluster-node0]

TASK [Add epel-release repo] ********************
changed: [cluster-node0]

TASK [Install nginx] ****************************
changed: [cluster-node0]

TASK [Insert Index Page] ************************
changed: [cluster-node0]

TASK [Start NGiNX] ******************************
changed: [cluster-node0]

PLAY RECAP **************************************
cluster-node0              : ok=5    changed=0    unreachable=0    failed=0