diff --git a/test/integration/targets/incidental_setup_rabbitmq/aliases b/test/integration/targets/incidental_setup_rabbitmq/aliases deleted file mode 100644 index 136c05e0d02..00000000000 --- a/test/integration/targets/incidental_setup_rabbitmq/aliases +++ /dev/null @@ -1 +0,0 @@ -hidden diff --git a/test/integration/targets/incidental_setup_rabbitmq/files/rabbitmq.conf b/test/integration/targets/incidental_setup_rabbitmq/files/rabbitmq.conf deleted file mode 100644 index 1e602175bdc..00000000000 --- a/test/integration/targets/incidental_setup_rabbitmq/files/rabbitmq.conf +++ /dev/null @@ -1,8 +0,0 @@ -listeners.ssl.default = 5671 - -ssl_options.cacertfile = /tls/ca_certificate.pem -ssl_options.certfile = /tls/server_certificate.pem -ssl_options.keyfile = /tls/server_key.pem -ssl_options.password = bunnies -ssl_options.verify = verify_peer -ssl_options.fail_if_no_peer_cert = false diff --git a/test/integration/targets/incidental_setup_rabbitmq/meta/main.yml b/test/integration/targets/incidental_setup_rabbitmq/meta/main.yml deleted file mode 100644 index 7a6c3e01e2d..00000000000 --- a/test/integration/targets/incidental_setup_rabbitmq/meta/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -dependencies: - - incidental_setup_tls diff --git a/test/integration/targets/incidental_setup_rabbitmq/tasks/main.yml b/test/integration/targets/incidental_setup_rabbitmq/tasks/main.yml deleted file mode 100644 index e6c870894c1..00000000000 --- a/test/integration/targets/incidental_setup_rabbitmq/tasks/main.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- include_tasks: ubuntu.yml - when: - - ansible_distribution == 'Ubuntu' - - ansible_distribution_release != 'focal' diff --git a/test/integration/targets/incidental_setup_rabbitmq/tasks/ubuntu.yml b/test/integration/targets/incidental_setup_rabbitmq/tasks/ubuntu.yml deleted file mode 100644 index 2b21c857b6a..00000000000 --- a/test/integration/targets/incidental_setup_rabbitmq/tasks/ubuntu.yml +++ /dev/null @@ -1,63 +0,0 @@ ---- -# https://www.rabbitmq.com/install-debian.html#apt-pinning -- name: Pin erlang version that rabbitmq supports - copy: - dest: /etc/apt/preferences.d/erlang - content: | - Package: erlang* - Pin: version 1:20.3.8.18-1 - Pin-Priority: 1000 - - Package: esl-erlang - Pin: version 1:20.3.6 - Pin-Priority: 1000 - -- name: Install https transport for apt - apt: - name: apt-transport-https - state: latest - force: yes - -- name: Add RabbitMQ release signing key - apt_key: - url: https://ansible-ci-files.s3.amazonaws.com/test/integration/targets/setup_rabbitmq/rabbitmq-release-signing-key.asc - state: present - -- name: Add RabbitMQ Erlang repository - apt_repository: - repo: ppa:rabbitmq/rabbitmq-erlang - filename: 'rabbitmq-erlang' - state: present - update_cache: yes - -# Required by the rabbitmq modules that uses the management API -- name: Install requests - pip: - name: requests - -- name: Install RabbitMQ Server - apt: - deb: https://ansible-ci-files.s3.us-east-1.amazonaws.com/test/integration/targets/setup_rabbitmq/rabbitmq-server_3.8.14-1_all.deb - -- name: Install RabbitMQ TLS dependencies - apt: - name: "{{ item }}" - state: latest - loop: - - erlang-asn1 - - erlang-crypto - - erlang-public-key - - erlang-ssl - -- name: Ensure TLS config - copy: - src: rabbitmq.conf - dest: /etc/rabbitmq/rabbitmq.conf - -- name: Start RabbitMQ service - service: - name: rabbitmq-server - state: started - -- name: Enable management - command: rabbitmq-plugins enable --online rabbitmq_management