Practice Free EX362 Exam Online Questions
Enable self-service so users can update their own mobile number and SSH keys.
- A . See the Explanation.
A
Explanation:
kinit admin
ipa selfservice-add "Users manage mobile & ssh"
ipa selfservice-add-permission "Users manage mobile & ssh" –attrs=mobile,sshPublicKey –subjects=’groups=ipausers’ ipa selfservice-show "Users manage mobile & ssh" Users then run:
kinit alice
ipa user-mod alice –mobile=+923001234567 –sshpubkey="ssh-ed25519 AAAA…"
Tower job to create a user + add to multiple groups + grant HBAC access in one run (single input variable).
- A . See the Explanation.
A
Explanation:
– hosts: ipa1.example.com become: true
vars:
newuser: "{{ username }}"
groups_to_add: [webadmins, aap-users] tasks:
– community.general.ipa_user: ipa_host: ipa1.example.com ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
uid: "{{ newuser }}"
givenname: "{{ newuser|capitalize }}"
sn: "User"
mail: "{{ newuser }}@example.com"
userpassword: "TempP@ss1"
state: present
– community.general.ipa_group:
ipa_host: ipa1.example.com
ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
name: "{{ item }}"
user: ["{{ newuser }}"]
state: present
loop: "{{ groups_to_add }}"
– command: ipa hbactest –user={{ newuser }} –host=app1.example.com –service=sshd
register: hb
changed_when: false
– debug: var=hb.stdout
In the Job Template, add a Survey variable username and launch.
Tower job to create a user + add to multiple groups + grant HBAC access in one run (single input variable).
- A . See the Explanation.
A
Explanation:
– hosts: ipa1.example.com become: true
vars:
newuser: "{{ username }}"
groups_to_add: [webadmins, aap-users] tasks:
– community.general.ipa_user: ipa_host: ipa1.example.com ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
uid: "{{ newuser }}"
givenname: "{{ newuser|capitalize }}"
sn: "User"
mail: "{{ newuser }}@example.com"
userpassword: "TempP@ss1"
state: present
– community.general.ipa_group:
ipa_host: ipa1.example.com
ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
name: "{{ item }}"
user: ["{{ newuser }}"]
state: present
loop: "{{ groups_to_add }}"
– command: ipa hbactest –user={{ newuser }} –host=app1.example.com –service=sshd
register: hb
changed_when: false
– debug: var=hb.stdout
In the Job Template, add a Survey variable username and launch.
Tower job to create a user + add to multiple groups + grant HBAC access in one run (single input variable).
- A . See the Explanation.
A
Explanation:
– hosts: ipa1.example.com become: true
vars:
newuser: "{{ username }}"
groups_to_add: [webadmins, aap-users] tasks:
– community.general.ipa_user: ipa_host: ipa1.example.com ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
uid: "{{ newuser }}"
givenname: "{{ newuser|capitalize }}"
sn: "User"
mail: "{{ newuser }}@example.com"
userpassword: "TempP@ss1"
state: present
– community.general.ipa_group:
ipa_host: ipa1.example.com
ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
name: "{{ item }}"
user: ["{{ newuser }}"]
state: present
loop: "{{ groups_to_add }}"
– command: ipa hbactest –user={{ newuser }} –host=app1.example.com –service=sshd
register: hb
changed_when: false
– debug: var=hb.stdout
In the Job Template, add a Survey variable username and launch.
Tower job to create a user + add to multiple groups + grant HBAC access in one run (single input variable).
- A . See the Explanation.
A
Explanation:
– hosts: ipa1.example.com become: true
vars:
newuser: "{{ username }}"
groups_to_add: [webadmins, aap-users] tasks:
– community.general.ipa_user: ipa_host: ipa1.example.com ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
uid: "{{ newuser }}"
givenname: "{{ newuser|capitalize }}"
sn: "User"
mail: "{{ newuser }}@example.com"
userpassword: "TempP@ss1"
state: present
– community.general.ipa_group:
ipa_host: ipa1.example.com
ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
name: "{{ item }}"
user: ["{{ newuser }}"]
state: present
loop: "{{ groups_to_add }}"
– command: ipa hbactest –user={{ newuser }} –host=app1.example.com –service=sshd
register: hb
changed_when: false
– debug: var=hb.stdout
In the Job Template, add a Survey variable username and launch.
Tower job to create a user + add to multiple groups + grant HBAC access in one run (single input variable).
- A . See the Explanation.
A
Explanation:
– hosts: ipa1.example.com become: true
vars:
newuser: "{{ username }}"
groups_to_add: [webadmins, aap-users] tasks:
– community.general.ipa_user: ipa_host: ipa1.example.com ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
uid: "{{ newuser }}"
givenname: "{{ newuser|capitalize }}"
sn: "User"
mail: "{{ newuser }}@example.com"
userpassword: "TempP@ss1"
state: present
– community.general.ipa_group:
ipa_host: ipa1.example.com
ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
name: "{{ item }}"
user: ["{{ newuser }}"]
state: present
loop: "{{ groups_to_add }}"
– command: ipa hbactest –user={{ newuser }} –host=app1.example.com –service=sshd
register: hb
changed_when: false
– debug: var=hb.stdout
In the Job Template, add a Survey variable username and launch.
Tower job to create a user + add to multiple groups + grant HBAC access in one run (single input variable).
- A . See the Explanation.
A
Explanation:
– hosts: ipa1.example.com become: true
vars:
newuser: "{{ username }}"
groups_to_add: [webadmins, aap-users] tasks:
– community.general.ipa_user: ipa_host: ipa1.example.com ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
uid: "{{ newuser }}"
givenname: "{{ newuser|capitalize }}"
sn: "User"
mail: "{{ newuser }}@example.com"
userpassword: "TempP@ss1"
state: present
– community.general.ipa_group:
ipa_host: ipa1.example.com
ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
name: "{{ item }}"
user: ["{{ newuser }}"]
state: present
loop: "{{ groups_to_add }}"
– command: ipa hbactest –user={{ newuser }} –host=app1.example.com –service=sshd
register: hb
changed_when: false
– debug: var=hb.stdout
In the Job Template, add a Survey variable username and launch.
Tower job to create a user + add to multiple groups + grant HBAC access in one run (single input variable).
- A . See the Explanation.
A
Explanation:
– hosts: ipa1.example.com become: true
vars:
newuser: "{{ username }}"
groups_to_add: [webadmins, aap-users] tasks:
– community.general.ipa_user: ipa_host: ipa1.example.com ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
uid: "{{ newuser }}"
givenname: "{{ newuser|capitalize }}"
sn: "User"
mail: "{{ newuser }}@example.com"
userpassword: "TempP@ss1"
state: present
– community.general.ipa_group:
ipa_host: ipa1.example.com
ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
name: "{{ item }}"
user: ["{{ newuser }}"]
state: present
loop: "{{ groups_to_add }}"
– command: ipa hbactest –user={{ newuser }} –host=app1.example.com –service=sshd
register: hb
changed_when: false
– debug: var=hb.stdout
In the Job Template, add a Survey variable username and launch.
Tower job to create a user + add to multiple groups + grant HBAC access in one run (single input variable).
- A . See the Explanation.
A
Explanation:
– hosts: ipa1.example.com become: true
vars:
newuser: "{{ username }}"
groups_to_add: [webadmins, aap-users] tasks:
– community.general.ipa_user: ipa_host: ipa1.example.com ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
uid: "{{ newuser }}"
givenname: "{{ newuser|capitalize }}"
sn: "User"
mail: "{{ newuser }}@example.com"
userpassword: "TempP@ss1"
state: present
– community.general.ipa_group:
ipa_host: ipa1.example.com
ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
name: "{{ item }}"
user: ["{{ newuser }}"]
state: present
loop: "{{ groups_to_add }}"
– command: ipa hbactest –user={{ newuser }} –host=app1.example.com –service=sshd
register: hb
changed_when: false
– debug: var=hb.stdout
In the Job Template, add a Survey variable username and launch.
Tower job to create a user + add to multiple groups + grant HBAC access in one run (single input variable).
- A . See the Explanation.
A
Explanation:
– hosts: ipa1.example.com become: true
vars:
newuser: "{{ username }}"
groups_to_add: [webadmins, aap-users] tasks:
– community.general.ipa_user: ipa_host: ipa1.example.com ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
uid: "{{ newuser }}"
givenname: "{{ newuser|capitalize }}"
sn: "User"
mail: "{{ newuser }}@example.com"
userpassword: "TempP@ss1"
state: present
– community.general.ipa_group:
ipa_host: ipa1.example.com
ipa_user: admin
ipa_pass: "{{ ipaadmin_password }}"
name: "{{ item }}"
user: ["{{ newuser }}"]
state: present
loop: "{{ groups_to_add }}"
– command: ipa hbactest –user={{ newuser }} –host=app1.example.com –service=sshd
register: hb
changed_when: false
– debug: var=hb.stdout
In the Job Template, add a Survey variable username and launch.
