Vincent Legoll ca89c07cd4 Fix ansible difference() filter use
The `difference()` filter inputs a list, and takes another list as
parameter, computes a set difference between the two, and returns
the resulting (unordered) list.

This is documented here:
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/difference_filter.html

This filter was changed in:
7d3d4572ed

The behaviour changed in ansible-core between 2.15 and 2.16:

```
    ################################################################
    ### Testing ansible-core==2.16
    ################################################################

    PLAY [Test ansible difference filter] ******************************************

    TASK [debug] *******************************************************************
    ok: [localhost] => {
        "msg": "diff with a string: ['one', 'two', 'six'] | difference('two')   => ['one', 'six', 'two']"
    }

    TASK [debug] *******************************************************************
    ok: [localhost] => {
        "msg": "diff with a list:   ['one', 'two', 'six'] | difference(['two']) => ['one', 'six']"
    }

    PLAY RECAP *********************************************************************
    localhost                  : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

    ################################################################
    ### Testing ansible-core==2.15
    ################################################################

    PLAY [Test ansible difference filter] ******************************************

    TASK [debug] *******************************************************************
    ok: [localhost] => {
        "msg": "diff with a string: ['one', 'two', 'six'] | difference('two')   => ['one', 'six']"
    }

    TASK [debug] *******************************************************************
    ok: [localhost] => {
        "msg": "diff with a list:   ['one', 'two', 'six'] | difference(['two']) => ['one', 'six']"
    }

    PLAY RECAP *********************************************************************
    localhost                  : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
```

The above was generated by using: https://github.com/vincent-legoll/test_ansible_diff

Closes-Bug: #2096936
Change-Id: I7a57c829803fc5baa8b1d3a1805c102f04b8ab2c
Signed-off-by: Vincent Legoll <vincent.legoll@iphc.cnrs.fr>
2025-03-13 18:21:59 +01:00
2025-02-12 16:03:55 +00:00
2023-10-09 10:24:48 +02:00
2023-07-17 16:17:30 +02:00
2025-02-28 08:38:53 +00:00
2025-02-12 16:03:55 +00:00
2025-02-12 16:03:55 +00:00
2019-04-19 19:49:15 +00:00
2016-09-28 10:27:39 +01:00
2022-04-04 10:42:44 +01:00

Team and repository tags

image

OpenStack-Ansible nova

Ansible role that installs and configures OpenStack nova and all of its corresponding services.

This role will install the following:
  • nova-api
  • nova-conductor
  • nova-scheduler
  • nova-console
  • nova-compute

Documentation for the project can be found at: https://docs.openstack.org/openstack-ansible-os_nova/latest/

Release notes for the project can be found at: https://docs.openstack.org/releasenotes/openstack-ansible-os_nova/

The project source code repository is located at: https://opendev.org/openstack/openstack-ansible-os_nova/

The project home is at: https://launchpad.net/openstack-ansible

The project bug tracker is located at: https://bugs.launchpad.net/openstack-ansible

Description
Role os_nova for OpenStack-Ansible
Readme 15 MiB
Languages
Jinja 58.9%
Python 27.9%
Shell 13.2%