EX294 Manage inventories and credentials • Complete Question Bank
Complete EX294 Manage inventories and credentials question bank — all 0 questions with answers and detailed explanations.
Refer to the exhibit.
Error message from a job run:
```
fatal: [db1]: UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).",
"unreachable": true
}
```Refer to the exhibit.
---
- name: Generate inventory
hosts: localhost
gather_facts: no
tasks:
- name: Create static inventory
add_host:
name: "web{{ item }}"
group: webservers
ansible_host: "192.168.1.{{ item }}"
loop:
- 10
- 11
- 12
- name: Create dynamic group
group_by:
key: "os_{{ ansible_distribution }}"
when: ansible_distribution is defined
---
# inventory.yml
plugin: constructed
strict: false
keyed_groups:
- key: ansible_distribution
prefix: distro
separator: "_"Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag a concept onto its matching description — or click a concept then click the description.
Configuration files
Variable data (logs, databases)
User system resources (binaries, libraries)
Temporary files
Process and kernel information
Drag a concept onto its matching description — or click a concept then click the description.
Logical Volume Manager for flexible storage
Redundant array of independent disks
Default Linux filesystem (journaling)
High-performance 64-bit filesystem
Virtual memory on disk
# inventory file [web] web1 ansible_host=192.168.1.10 ansible_user=admin web2 ansible_host=192.168.1.11 [web:vars] ansible_user=deploy
# vars/main.yml db_password: !vault | $ANSIBLE_VAULT;1.1;AES256 62616133626435323435303036383837623839646538646134313734326438 32336262656134333766346133343462663230663738636261343861336662 0a3532666463313035616265643237343763366261666338663462643761 3733
Refer to the exhibit. ```yaml inventory_source: name: Production Inventory organization: Default source: scm source_project: "Ansible Inventory Repo" source_path: "inventories/production/hosts.yml" credential: "GitHub Personal Access Token" update_on_launch: true update_cache_timeout: 0 ``` The administrator has noticed that the inventory sync fails with authentication errors. The GitHub Personal Access Token credential is of type 'Machine' instead of 'Source Control'.