Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/lookup_etcd3/tasks/main.yml

raw
1 ---
2 ####################################################################
3 # WARNING: These are designed specifically for Ansible tests #
4 # and should not be used as examples of how to write Ansible roles #
5 ####################################################################
6
7 # lookup_etcd3 integration tests
8 # Copyright (c) 2020, SCC France, Eric Belhomme <[email protected]>
9 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
10 # SPDX-License-Identifier: GPL-3.0-or-later
11
12 - name: Put key/values with an etcd prefix
13 community.general.etcd3:
14 key: "{{ etcd3_prefix }}foo{{ item }}"
15 value: "bar{{ item }}"
16 state: present
17 loop:
18 - 1
19 - 2
20 - 3
21
22 - name: Put a single key/value in etcd
23 community.general.etcd3:
24 key: "{{ etcd3_singlekey }}"
25 value: "foobar"
26 state: present
27
28 - name: Import lookup tests
29 ansible.builtin.import_tasks: tests.yml