Re: [ansible-project] location of `group_vars/` for included playbooks changed in 2.4+ ?

2018-08-21 Thread Riccardo Murri
Thank you very much for your reply, Matt -- indeed this was rather clearly documented in the 2.4 porting guide... Effectively, you want to make sure your group_vars is relative to your > inventory file, and not your playbook file. > > Won't be possible in my case (inventory is generated and plac

[ansible-project] location of `group_vars/` for included playbooks changed in 2.4+ ?

2018-08-21 Thread Riccardo Murri
Hello, I am updating some playbooks written initially for Ansible 2.2. and 2.3 to remove the features that were deprecated in Ansible 2.4+ The playbook is divided across multiple files, where `main.yml` would `include: roles/play_a.yml` (at playbook level), and then `play_a.yml` would call ro

[ansible-project] how to update list of dicts in playbook?

2017-07-18 Thread Riccardo Murri
Hello, I would like to write a playbook that does the following: 1. Read a list of source URLs + other meta-data, e.g.: ``` sources: - name: CentOS 6 source: http://cloud.centos.org/centos/6/images/CentOS-6-x86_64-GenericCloud.qcow2 user: centos - name: Debian 8 source: http://

[ansible-project] Install SW across different distributions

2016-04-18 Thread Riccardo Murri
Hello, I am editing some playbooks that should be able to install software across different distrubutions. Since Ansible 2.0 there is the OS-independent package manager module; however, actual package names vary across distrubutions: e.g., the `/usr/bin/ssh` command comes from package `openssh-cl