diff --git a/docs/guides/operations-guide/openstack/day2-operations/playbooks.md b/docs/guides/operations-guide/openstack/day2-operations/playbooks.md new file mode 100644 index 0000000000..bb14682b04 --- /dev/null +++ b/docs/guides/operations-guide/openstack/day2-operations/playbooks.md @@ -0,0 +1,38 @@ +--- +sidebar_label: Playbooks +sidebar_position: 40 +--- + +# Playbooks + +## Host aggregates + +Host aggregates can be managed with the playbook. The playbook is used with +`osism apply -e openstack host-aggregates`. + +Further arguments for host aggregates can be found in the +[documentation for the openstack.cloud.host_aggregate](https://docs.ansible.com/ansible/latest/collections/openstack/cloud/host_aggregate_module.html) Ansible module. + +```yaml title="environments/openstack/playbook-host-aggregates.yml" +--- +- name: Manage host aggregates + hosts: localhost + connection: local + + vars: + host_aggregates: + - name: aggregate1 + hosts: + - host1 + - host2 + - host3 + + tasks: + - name: Create host aggregate + openstack.cloud.host_aggregate: + cloud: admin + state: present + name: "{{ item.name }}" + hosts: "{{ item.hosts }}" + loop: "{{ host_aggregates }}" +``` diff --git a/docs/guides/other-guides/style-guide.md b/docs/guides/other-guides/style-guide.md index 1e6697ff38..0a3fc62568 100644 --- a/docs/guides/other-guides/style-guide.md +++ b/docs/guides/other-guides/style-guide.md @@ -8,7 +8,7 @@ sidebar_position: 100 ## Ansible We implement all the default rules of Ansible Lint. All default rules can be found in the -Ansible Lint documentation: +[Ansible Lint documentation](https://ansible.readthedocs.io/projects/lint/rules/). ### Task names