Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'Your first Ansible playbook' example to this repo, update it #220

Closed
geerlingguy opened this issue Mar 25, 2020 · 3 comments
Closed

Add 'Your first Ansible playbook' example to this repo, update it #220

geerlingguy opened this issue Mar 25, 2020 · 3 comments

Comments

@geerlingguy
Copy link
Owner

@geerlingguy geerlingguy commented Mar 25, 2020

Right now it's just in the book (page 13 of version 2.20), and it currently installs ntp and gets it running on a CentOS 7 VM in VirtualBox, managed by Vagrant.

The playbook should be in this repository (with a mapping from the README), and it should be tested like any other playbook.

It would be better to use a more modern example, maybe replace ntp/ntpd with chrony? Or use something else that is pretty universal.

@geerlingguy
Copy link
Owner Author

@geerlingguy geerlingguy commented Mar 25, 2020

There's also a multi-server orchestration example in Chapter 3 that sets up ntpd that should instead set up chronyd.

@deepak-malhotra
Copy link

@deepak-malhotra deepak-malhotra commented Apr 15, 2020

The problem with this example is that .vagrantfile syntax assumes that its a Linux environment. I have virtualbox installed on Windows with Ubuntu 18.04 running in WSL2. Thats why I am stuck as I get an error when I run "vagrant provision" as it can't find Ansible on my Windows system.

What options do I have ? I reckon if somehow I could tell vagrant to use ansible installed in WSL Ubuntu or use Ansible installed in the new VM itself ?

@geerlingguy
Copy link
Owner Author

@geerlingguy geerlingguy commented Apr 15, 2020

@deepak-malhotra - For Windows, you can use Vagrant installed in Windows, and in the Vagrantfile itself, use the ansible_local provisioner (instead of ansible) in that section; see documentation here: https://www.vagrantup.com/docs/provisioning/ansible_local.html

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

No branches or pull requests

2 participants