* I am trying to set up a new host: spirit.domain.com. Which should get
the roles for the groups "linux", "fileserver-client" and "vmguests" I run
this command:*
ansible-playbook /etc/ansible/host_new.yml -i spirit.rdlg.net,
*My hosts file looks like this:*
[linux]
wally.domain.com ansible_connection=ssh
camel.domain.com ansible_connection=ssh
spirit.domain.com ansible_connection=ssh
[fileserver]
camel.domain.com ansible_connection=ssh
[fileserver-clients]
wally.domain.com ansible_connection=ssh
camel.domain.com ansible_connection=ssh
spirit.domain.com ansible_connection=ssh
[vmguests]
spirit.domain.com ansible_connection=ssh
[www]
wally.domain.com ansible_connection=ssh
*The "new_host.yml" looks like this:*
---
- hosts: all
##################################
# Install packages for all hosts #
##################################
roles:
- update_common_base
- setup_networking
- update_packages
- install_common_packages
- remove_packages
##########################
# host specific installs #
##########################
# Install packages for fileserver hosts
- hosts: fileserver
roles:
- update_fileserver_base
- install_fileserver_packages
# Install packages for fileserver-clients hosts
- hosts: fileserver-clients
roles:
- update_fileserver-clients_base
# Install packages for vmguests hosts
- hosts: vmguests
roles:
- install_vmguests_packages
# Install packages for www hosts
- hosts: www
roles:
- install_www_packages
However whenever I run the ansible command as it is, it only runs the "all"
roles. I can specify "-l fileserver-clients" and it installs just that set
of roles, not the "all" or "vmguests".
Anyone have any ideas?
Robert
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/7e5306e7-4b1d-4a65-a21e-e1250b7fb773%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.