Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/snapshot_info.yml

raw symbols SCIP
1 ---
2 - hosts: localhost
3 collections:
4 - theforeman.foreman
5 gather_facts: false
6 vars_files:
7 - vars/server.yml
8 tasks:
9 - include_tasks: tasks/snapshot.yml
10 vars:
11 snapshot_state: present
12
13 - hosts: tests
14 collections:
15 - theforeman.foreman
16 gather_facts: false
17 vars_files:
18 - vars/server.yml
19 tasks:
20 - name: fetch snapshot info
21 snapshot_info:
22 username: "{{ foreman_username }}"
23 password: "{{ foreman_password }}"
24 server_url: "{{ foreman_server_url }}"
25 validate_certs: "{{ foreman_validate_certs }}"
26 host: "{{ snapshot_host_name }}"
27 register: snapshot_info
28 - name: check snapshots details
29 assert:
30 that:
31 - snapshot_info['snapshots'][0]['name'] == "ansible"