Repeat a block with a different variable?

10 views
Skip to first unread message

leam hall

unread,
Apr 5, 2018, 8:04:35 PM4/5/18
to ansible...@googlegroups.com
Still more Ansible newbie than journeyman. Trying to figure out how to
re-run a block with a different variable.

Issues:

1. Ruby must be installed to compile new versions of Ruby.
2. The CentOS 6 default version of Ruby is too old to compile the newest Ruby.

Plan:

1. Ensure default Ruby is installed.
2. Clone the Ruby git repo.
2.1. Change to an intermediate version's branch (2.0.0, arbitrary but compiles)
2.2. Do a basic compile and install
3. Remove the default Ruby

The next step, and thus my question, is how to rerun the
autoconf/configure/make etc steps with the trunk branch. In theory I
can just remove the entire git clone and start over. Is there a better
way? What is it?

https://github.com/LeamHall/Ansible_Test/blob/master/playbooks/dev_station.yml#L135-L179

Thanks!

Leam

leam hall

unread,
Apr 5, 2018, 8:21:08 PM4/5/18
to Ansible Project
Reply all
Reply to author
Forward
0 new messages