ansible / instruqt Goto Github PK
View Code? Open in Web Editor NEWSelf-paced instruqt Training material
Self-paced instruqt Training material
https://www.ansible.com/products/ansible-training
When attempting to complete the basic Write Your Own Playbook training, I repeatedly ran into issues where I could not proceed. It does not seem to be checking to see if any of the entered code is correct before moving onto the next page, and hence pops an error when trying to reference previous code that it said was correct before but was in fact blank. Can't figure out how to restart the exercise either. I tried in Chrome and Firefox and hit the same bug.
Thanks!
edit: by clicking through the whole course and not entering anything I was able to restart. It still says all the answers are correct without me actually typing anything, which is frustrating.
Currently, all the Ansible Community tracks use vim
editor to edit playbook and config files but users face indentation issues while copy-pasting code on vim
Instruqt Web UI. It'll be good if we use VSCODE editor instead.
hello,
during the progress 3, we have step "Step 2 - Execute Network Automation - Restore Job Template" but in the explanation text "To execute the Network Automation - Backup Job Template click the rocket button which incidates the launch job button:"
it should be "[Network Automation - Restore]"
br..
Yaju
No hosts file
Attempting to start the new "DevOps and CI/CD with automation controller" track and it fails to start on the first course of the track. After clicking start and waiting approximately 4 minutes it fails with an error of
Failed to start track
Unable to start track, please try again
I have tried 5 different times and received the same error.
Instruqt distributes ssh keys to all nodes in environment for root only. Need to fix images to distribute keys for a non-root user (e.g. rhel user)
(venv) [rhel@ansible tests]$ ansible rhel -i hosts -m ping
[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.6.8 (default, Aug 18
2020, 08:33:21) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]. This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
node1 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: rhel@node1: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).",
"unreachable": true
}
(venv) [rhel@ansible tests]$ ssh root@node1
root@node1: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
(venv) [rhel@ansible tests]$ ssh node1
rhel@node1: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Running the "Getting started with ansible-navigator" training and in the first set of instructions you are told to run ansible-navigator run ./test.yml -m stdout
. After running that I get the following error :
I verified that the playbook is there :
Also verified that ansible-playbook
is not installed :
I cannot get passed this first set of instructions because of this.
It's quite possible this is user error though.
cannot open the Cisco.txt file, it said no such file or directory.
what could be the problem?
Hi, I'm working on network automation backup and restore demo. each time I launch the Network automation - backup " template it come out with the fail result as " toggle fullscreen
Alert iconIncorrect solution 1/1
You have not launched the 'Network Automation - Backup' job template.
I don't know what where is the problem, I checked everything and I configured it well.
thank you for the feedback.
I am getting an error as below:
The error appears to be in '/home/rhel/ansible-files/apache.yml': line 3, column 9, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
Could you help me to find the issue with "hosts: node1"
currently need to add environment variable to the ansble control node to set TERM=xterm
this part did not work on the Azure side
Error message when building the automation-controller image. Missing workshop_name variable.
packer build --force automation-controller.pkr.hcl
googlecompute.automation-controller: TASK [ansible.workshops.control_node : Pull supported and workshop images] *****
googlecompute.automation-controller: task path: /home/craig/.ansible/collections/ansible_collections/ansible/workshops/roles/control_node/tasks/30_controller.yml:95
googlecompute.automation-controller: fatal: [default]: FAILED! => {
googlecompute.automation-controller: "msg": "'workshop_type' is undefined"
- name: Pull supported and workshop images
become_user: "awx"
containers.podman.podman_image:
name: "{{ item }}"
loop:
- "registry.redhat.io/ansible-automation-platform-20-early-access/ee-supported-rhel8:2.0.0"
- "registry.redhat.io/ansible-automation-platform-20-early-access/ee-29-rhel8:2.0.0"
- "registry.redhat.io/ansible-automation-platform-20-early-access/ee-minimal-rhel8:2.0.0"
- "{{ lookup('vars', workshop_type + '_ee') }}"
Todo for @cloin
Hi @cloin
I'm opening this issue to track our effort of localizing the Instruqt files into Japanese.
I will proceed with further testings by trying to lock some of the keys and see if the source content imports better in our TMS.
Attaching a screenshot of the issue we've observed in Memsource.
There is a wrong hostname in Section Validate idempotency
.
Step 4 - Verify configuration is not present
ssh rtr1
must be
ssh cisco
(ansible-venv) [devops@shell ansible]$ ansible --version
ERROR: Ansible requires Python 3.8 or newer on the controller. Current version: 3.6.8 (default, Mar 19 2021, 05:13:41) [GCC 8.4.1 20200928 (Red Hat 8.4.1-1)]
Received this error when following along the steps. Appears that only Python3.6 is installed.
I started the Challenge and followed the steps, which ended up in an error due to the wrong Python Version (3.6 installed, 3.8 required)
Track: ansible-community-developing-ansible-module
Challenge: preparing-dev-env
(ansible-venv) [devops@shell ansible]$ ansible --version
ERROR: Ansible requires Python 3.8 or newer on the controller. Current version: 3.6.8 (default, Mar 19 2021, 05:13:41) [GCC 8.4.1 20200928 (Red Hat 8.4.1-1)]
Python 3.8 installed, already created venv removed, started over with creating the venv and following the rest of the steps again solved it:
sudo yum install python38
rm -rf ~/ansible/ansible-venv
python3.8 -m venv ansible-venv
ansible-venv) [devops@shell ansible]$ ansible --version
[WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out
features under development. This is a rapidly changing source of code and can become unstable at any point.
ansible [core 2.12.0.dev0] (devel 8643db5ac3) last updated 2021/09/28 16:06:09 (GMT +000)
config file = None
configured module search path = ['/home/devops/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/devops/ansible/lib/ansible
ansible collection location = /home/devops/.ansible/collections:/usr/share/ansible/collections
executable location = /home/devops/ansible/bin/ansible
python version = 3.8.6 (default, Jan 29 2021, 17:38:16) [GCC 8.4.1 20200928 (Red Hat 8.4.1-1)]
jinja version = 3.0.1
libyaml = True
One problem I encountered while using the above lab was that my session expired after a certain amount of time (note: I encountered twice, and I think each time was around 15min from the beginning of lab) as I was documenting my experience while testing out the lab. The "session expired" message came while I was typing within the lab so it is not "timeout" due to inactivity. It is quite disturbing because the "restart track" actually will completely start the lab as new. And this means 4-minute-plus to rebuild the lab
Hello,
I have dont this lab multiple times and "Progress step 2: Create a Survey" always fails.
Incorrect solution 1/1
Job Template does not exist with correct Survey - please try again or use SKIP
br..
Yaju
community-fixing-a-bug/challenges/create-a-changelog-fragment/assignment
As far i can see neither a git user.name
and user.email
value is pre-configured nor mentioned in the instructions to add it, so the git commit
that should be done as last step will fail and produce an error message.
[devops@shell mysql]$ git add changelogs/fragments/mysql_user_docs.yml plugins/modules/mysql_user.py
[devops@shell mysql]$ git commit -m "Fix mysql_user documentation"
*** Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: empty ident name (for <[email protected]>) not allowed
For sure, can be fixed easy be the user itself, but doesn't look nice in a Beginner Course I think.
[devops@shell mysql]$ git config --global user.email "[email protected]"
[devops@shell mysql]$ git config --global user.name "Your Name"
[devops@shell mysql]$ git commit -m "Fix mysql_user documentation"
[ci_example c1fdbad] Fix mysql_user documentation
2 files changed, 4 insertions(+)
create mode 100644 changelogs/fragments/mysql_user_docs.yml
@Ompragash I'm not sure if this is in production anywhere, but this track seems to fail to start:
If this track is not in production and should not be tested regularly, please flip the maintenance mode switch on the track page:
I failed to connect the OCP console when clicking "Web Console" at the beginning. The OCP takes a long time to be ready. After OCP is ready, no enough time left to finish lab. The lab session is expired before finishing the AAP installation.
It would be nice for the EEs installed on the Ansible node to also be installed on Controller node like:
instruqt/images/ansible/ansible-setup.yml
Lines 107 to 128 in 8824a9d
Build a simple .net application in Azure Pipelines and add a step in the pipeline to hand off to an automation workflow in AAP on Azure. After deployment of the infrastructure and web application, kick back to the pipeline to finish the remaining tests and release code.
The Credential
User: student
Password: learn_ansible
doesen't work with Gittea and the Controller. Only with Jenkins is a login possible with these credential.
https://developers.redhat.com/learn/devops-cicd-automation-controller
While working on the ansible-builder
I can see pip related warnings asking to upgrade pip
Instance needs to be update to run commands post-install to run pip install --upgrade pip
Getting the following error when trying to run this lab:
Last login: Fri Oct 7 15:17:38 UTC 2022 on pts/0
[rhel@control ~]$ cd ansible-files
[rhel@control ansible-files]$ ansible-navigator run apache.yml
[WARNING]: Unable to parse /home/rhel/ansible-files/hosts as an inventory
source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: node1
PLAY [Apache server installed] *************************************************
skipping: no hosts matched
PLAY RECAP *********************************************************************
[rhel@control ansible-files]$
On both node1 and node2 nginx is already running and bound to port 80. While the playbooks will work, you'll never see the output of the dev vs prod server in "adding variables to the mix" and you won't see the apache service started when you do "rpm -q httpd" in the "run-it" section.
Recommend stopping nginx as part of the initial creation process
When working through the "Populate the ansible-builder spec file and create a custom execution environment" I get an error on the last command "ansible-builder build -v3 -t custom-ee". Looks to be a permission error. See the image attached
.
Let me know if you need anymore details.
Thanks,
Matthew Packer
Product Marketing
Ansible Automation
hosts file has the rhel users sudo password, which can cause issues once a user tries to fiddle with it.
Incorrect solution 3/3
Oh no, ee-supported-rhel8:2.0.0 wasn't used by ansible-navigator
Alert icon
Doesn't matter what I do, change pull-policy to missing, to always -- always gives same error
At the following step to enter the credentials in gitea - it doesn't accept the credentials:
_ACME Corp uses Gitea for source code management and contains the Let’s Quiz! application code repository.
Click on the Gitea tab on the top of the browser window.
Log into Gitea by clicking the Sign in button in the top right-hand corner and using the provided credentials._
Used the credentials provided as suggested by the learning. But no login possible...
To align with the current direction of Ansible (and larger Ansible workshops), I would recommend shifting the entire workshop to leverage ansible-navigator instead of ansible-playbook and also shifting to use the FQCN for all modules
The current password for the windows image "Password123" is not sufficiently complex to demo Active Directory creation and password complexity. An updated password for that image (eg. Ansible123!
would resolve this issue.
Track fails to start and provides the error: "Failed to start the track Track is currently in maintenance, it cannot be started"
Hi team.
We need to update the "Writing your first playbook" lab to use ansible-navigator (and not ansible-playbook), and we need to make sure all modules used are written in FQCN. Please and thank you.
The logic in the check-controller script here:
fails if the Debug-Info job has been run more than once. Such as, for example, if the underlying image lacks the Debug-Info Job Template and an unfamiliar student creates one of his own which doesn't quite work right the first time.
A simple fix would be to add a "head -1" to the end so only one result is returned from multiple tries.
Issue:
Running
packer build
command displaysredhat_login.yml
user_password
Ansible variable in clear text
Command
packer build automation-controller.pkr.hcl
When creating a new track with the tower image, I am not able to add any hosts to tower as the license is expired.
Error message when building the automation-controller image. Missing ec2_name_prefix
variable.
packer build --force automation-controller.pkr.hcl
googlecompute.automation-controller: "msg": "The task includes an option with an undefined variable. The error was: {{ playbook_dir }}/{{ ec2_name_prefix }}: 'ec2_name_prefix' is undefined\n\nThe error appears to be in '/home/craig/.ansible/collections/ansible_collections/ansible/workshops/roles/control_node/tasks/20_all_workshop.yml'
- name: Put ssh-key in proper spot for student
copy:
src: "{{ playbook_dir }}/{{ec2_name_prefix}}/{{ec2_name_prefix}}-private.pem"
dest: "/home/{{ username }}/.ssh/id_rsa"
owner: "{{ username }}"
group: "{{ username }}"
mode: 0400
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.