You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib
Dag Wieërs a96f681352 Allow groups to be defined on a per-host basis
This makes it possible to define on a per-host basis what groups a host is in.
When managing a large set of systems it makes it easier to ensure each of the
systems is defined in a set of groups (e.g. production/qa/development,
linux/solaris/aix) rather than having to add systems to multiple disconnected
groups.

----
  - host: system01

  - host: system02

  - host: system03

  - group: linux
    hosts:
    - system01
    - system02

  - group: solaris
    hosts:
    - system03

  - group: production
    hosts:
    - system01
    - system03

  - group: qa
    - system02

  - group: dbserver
    hosts:
    - system01

  - group: ntpserver
    hosts:
    - system02

  - group: webserver
    - system03
----

Can be redefined as:

----
  - host: system01
    groups: [ linux, production, dbserver ]

  - host: system02
    groups: [ linux, qa, ntpserver ]

  - host: system03
    groups: [ solaris, production, webserver ]
----
13 years ago
..
ansible Allow groups to be defined on a per-host basis 13 years ago