Debian Codegraph @

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

raw symbols SCIP
1 # registered host expected
2
3 ---
4 - hosts: localhost
5 collections:
6 - theforeman.foreman
7 gather_facts: false
8 vars_files:
9 - vars/server.yml
10 tasks:
11 - name: fetch status
12 include_tasks: tasks/status_info.yml
13
14 - hosts: tests
15 collections:
16 - theforeman.foreman
17 gather_facts: false
18 vars_files:
19 - vars/server.yml
20 vars:
21 tasks:
22 - name: "Run remote command on a single host once"
23 job_invocation:
24 username: "{{ foreman_username }}"
25 password: "{{ foreman_password }}"
26 server_url: "{{ foreman_server_url }}"
27 search_query: "{{ foreman_host }}"
28 command: 'ls'
29 job_template: 'Run Command - Script Default'
30 validate_certs: "{{ foreman_validate_certs }}"
31
32 - name: "Run Ansible command on active hosts once a day"
33 job_invocation:
34 username: "{{ foreman_username }}"
35 password: "{{ foreman_password }}"
36 server_url: "{{ foreman_server_url }}"
37 command: 'pwd'
38 bookmark: 'ok hosts'
39 job_template: 'Run Command - Ansible Default'
40 validate_certs: "{{ foreman_validate_certs }}"
41 recurrence:
42 cron_line: "30 2 * * *"
43 concurrency_control:
44 concurrency_level: 2
45
46 - name: "Run the katello_package_install feature to install a package on a single host"
47 job_invocation:
48 username: "{{ foreman_username }}"
49 password: "{{ foreman_password }}"
50 server_url: "{{ foreman_server_url }}"
51 validate_certs: "{{ foreman_validate_certs }}"
52 search_query: "{{ foreman_host }}"
53 feature: 'katello_package_install'
54 inputs: 'package=podman'