Professional Documents
Culture Documents
Rhce Exam V4
Rhce Exam V4
Use rd.break’s rhce8 test environment to complete this test. You will also need the chi-aws.py and nyc-
aws.py scripts which are included in the Appendix. Add an extra 4GB hard drive to node1. Ansible
should already be installed.
Task 3: Secrets
1. Create an encrypted vault file (using thering as the password) named ~/plays/vars/secret.yml that
will set the following variables:
• crew_pass = 'roci'
• muscle_pass = 'duhhh'
2. Save the password to secret.yml file in a file named ~/plays/secret_key.
3. Make your playbooks use the secret.yml file without interaction.
try:
import json
except ImportError:
import simplejson as json
class ExampleInventory(object):
def __init__(self):
self.inventory = {}
self.read_cli_args()
print (json.dumps(self.inventory))
try:
import json
except ImportError:
import simplejson as json
class ExampleInventory(object):
def __init__(self):
self.inventory = {}
self.read_cli_args()
print (json.dumps(self.inventory))