Skip to content

Use Ansible to provision VM.#1

Open
jfilip wants to merge 2 commits intomasterfrom
ansible_provisioning
Open

Use Ansible to provision VM.#1
jfilip wants to merge 2 commits intomasterfrom
ansible_provisioning

Conversation

@jfilip
Copy link
Owner

@jfilip jfilip commented Dec 19, 2016

Replace shell-based provisioning with a simple Ansible playbook and single template file.

The output from an initial provisioning looks like this:

==> default: Running provisioner: ansible_local...
    default: Installing Ansible...
    default: Installing pip... (for Ansible installation)
    default: Running ansible-playbook...

PLAY [all] *********************************************************************

TASK [setup] *******************************************************************
ok: [default]

TASK [Generate default locale] *************************************************
ok: [default]

TASK [Setup system-wide default locale] ****************************************
changed: [default]

TASK [Update APT cache] ********************************************************
ok: [default]

TASK [Install required software] ***********************************************
changed: [default] => (item=[u'ntp', u'sqlite3', u'ruby', u'ruby-dev', u'bundler', u'nodejs', u'postgresql-9.5', u'postgresql-client-9.5', u'postgresql-server-dev-9.5', u'python-psycopg2'])

TASK [Create bundler install directory] ****************************************
changed: [default]

TASK [Ensure Vagrant Postgres user exists] *************************************
changed: [default]

TASK [Change dir to /vagrant on login] *****************************************
changed: [default]

PLAY RECAP *********************************************************************
default                    : ok=8    changed=5    unreachable=0    failed=0

@jfilip jfilip force-pushed the ansible_provisioning branch from eaf941a to c4a3438 Compare December 31, 2016 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant