ansible / workshops

Training Course for Ansible Automation Platform
MIT License
1.75k stars 1.14k forks source link

f5_setup : Install AS3 #590

Closed rmarcandier13 closed 4 years ago

rmarcandier13 commented 4 years ago
SUMMARY

I cloned the repo and tried to build the Ansible F5 lab

ISSUE TYPE
EXTRA VARS FILE
❯ cat extra_vars.yml
---
# region where the nodes will live
ec2_region: us-east-1
# name prefix for all the VMs
ec2_name_prefix: renatoworkshop
# amount of work benches to provision
student_total: 1
# workshp runs in F5 mode
workshop_type: f5
## Optional Variables
# password used for student account on control node
admin_password: ansible
# creates HTML website for workshop
create_login_page: true
# install xrdp with xfce for graphical interface
xrdp: true

for more information on the extra vars file please refer to: https://github.com/network-automation/linklight/blob/master/provisioner/README.md

ANSIBLE VERSION
ansible 2.9.1
  config file = /Users/rengonca/Documents/GitHub/workshops/provisioner/ansible.cfg
  configured module search path = ['/Users/rengonca/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/rengonca/Documents/GitHub/workshops/provisioner/f5/lib/python3.7/site-packages/ansible
  executable location = /Users/rengonca/Documents/GitHub/workshops/provisioner/f5/bin/ansible
  python version = 3.7.4 (v3.7.4:e09359112e, Jul  8 2019, 14:54:52) [Clang 6.0 (clang-600.0.57)]
CONFIGURATION
OS / ENVIRONMENT

❯ system_profiler SPSoftwareDataType Software:

System Software Overview:

  System Version: macOS 10.15.1 (19B88)
  Kernel Version: Darwin 19.0.0
  Boot Volume: Macintosh HD
  Boot Mode: Normal
  Computer Name: RENGONCA-M-J0QL
  User Name: rengonca (rengonca)
  Secure Virtual Memory: Enabled
  System Integrity Protection: Enabled
  Time since boot: 16:51
PLAYBOOK SHORT OUTPUT
TASK [f5_setup : Install AS3] **************************************************************************************************************************************************************************************************************************************************
fatal: [renatoworkshop-student1-f5]: FAILED! => changed=false
  cmd: rpm -qp --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}' /Users/rengonca/Documents/GitHub/workshops/provisioner/roles/f5_setup/files/f5-appsvcs-3.4.0-2.noarch.rpm
  msg: '[Errno 2] No such file or directory'
  rc: 2
PLAYBOOK LONG OUTPUT
❯  ansible-playbook provision_lab.yml -e @extra_vars.yml

PLAY [Perform Checks to make sure this Playbook will complete successfully] ****************************************************************************************************************************************************************************************************

TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [make sure we are running correct Ansible Version] ************************************************************************************************************************************************************************************************************************
ok: [localhost] => changed=false
  msg: All assertions passed

TASK [make sure workshop_type is set to a correct value] ***********************************************************************************************************************************************************************************************************************
ok: [localhost] => changed=false
  msg: All assertions passed

TASK [make sure network_type is set to a correct value] ************************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [make sure security_console is set to a correct value] ********************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [run role to check if local environment setup will work with AWS] *********************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: aws_az_facts is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: aws_caller_facts is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.

TASK [aws_check_setup : grab boto version] *************************************************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [aws_check_setup : make sure we are running correct boto version] *********************************************************************************************************************************************************************************************************
ok: [localhost] => changed=false
  msg: All assertions passed

TASK [aws_check_setup : check for underscores in workshop name] ****************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [aws_check_setup : FIND AZ ZONE FOR REGION us-east-1] *********************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [aws_check_setup : SET AZ ZONE TO FIRST AVAILABLE] ************************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [aws_check_setup : grab information about AWS user] ***********************************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: The 'aws_caller_facts' module has been renamed to 'aws_caller_info'. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
ok: [localhost]

TASK [aws_check_setup : save username of AWS user] *****************************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [aws_check_setup : debug] *************************************************************************************************************************************************************************************************************************************************
ok: [localhost] =>
  msg: arn:aws:iam::213576388750:root

TASK [make sure we are not running with TESTWORKSHOP as the name so no overlap] ************************************************************************************************************************************************************************************************
ok: [localhost] => changed=false
  msg: All assertions passed

TASK [make sure packages required are installed on this control node] **********************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [make sure (windows) packages required are installed on this control node] ************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [fail if previous check has changed] **************************************************************************************************************************************************************************************************************************************
ok: [localhost] => changed=false
  msg: All assertions passed

TASK [Check that the provided license exists] **********************************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [debug] *******************************************************************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [fail] ********************************************************************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [required roles] **********************************************************************************************************************************************************************************************************************************************************
skipping: [localhost] => (item=geerlingguy.repo-epel)
skipping: [localhost] => (item=ansible_security.ids_config)
skipping: [localhost] => (item=ansible_security.ids_install)

TASK [check async role install] ************************************************************************************************************************************************************************************************************************************************
skipping: [localhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'item': 'geerlingguy.repo-epel', 'ansible_loop_var': 'item'})
skipping: [localhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'item': 'ansible_security.ids_config', 'ansible_loop_var': 'item'})
skipping: [localhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'item': 'ansible_security.ids_install', 'ansible_loop_var': 'item'})

TASK [Windows workshop specific vars] ******************************************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [Check Domain Admin Password Complexity] **********************************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [Check Users Password Complexity] *****************************************************************************************************************************************************************************************************************************************
skipping: [localhost]

PLAY [Create lab instances in AWS] *********************************************************************************************************************************************************************************************************************************************

TASK [manage_ec2_instances : include_tasks] ************************************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [manage_ec2_instances : provision aws resources and instances] ************************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: ec2_ami_facts is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.
included: /Users/rengonca/Documents/GitHub/workshops/provisioner/roles/manage_ec2_instances/tasks/provision.yml for localhost

TASK [manage_ec2_instances : ensure workshop folder renatoworkshop exists] *****************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [manage_ec2_instances : provision aws resources] **************************************************************************************************************************************************************************************************************************
included: /Users/rengonca/Documents/GitHub/workshops/provisioner/roles/manage_ec2_instances/tasks/resources.yml for localhost

TASK [manage_ec2_instances : Create AWS VPC renatoworkshop-vpc] ****************************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [manage_ec2_instances : Create AWS VPC renatoworkshop-vpc (SECURITY MODE)] ************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [manage_ec2_instances : Set the create_vpc fact with the correct VPC info] ************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [manage_ec2_instances : Create EC2 security group for VPC named renatoworkshop-vpc] ***************************************************************************************************************************************************************************************
changed: [localhost]

TASK [manage_ec2_instances : Windows | Create Gitlab Node security group] ******************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [manage_ec2_instances : Windows | Create Docs Node security group] ********************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [manage_ec2_instances : Windows | Create MS AD Domain Controller security group] ******************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [manage_ec2_instances : Windows | Create MS Windows security group] *******************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [manage_ec2_instances : Create subnet for renatoworkshop-vpc] *************************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [manage_ec2_instances : Create subnet2 for renatoworkshop-vpc (SECURITY MODE)] ********************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [manage_ec2_instances : vpc internet gateway is present for vpc-0c9b0255109e46858] ****************************************************************************************************************************************************************************************
changed: [localhost]

TASK [manage_ec2_instances : vpc public subnet route table is present for vpc-0c9b0255109e46858] *******************************************************************************************************************************************************************************
changed: [localhost]

TASK [manage_ec2_instances : set variables for instance creation dynamically since VPC was not supplied by user] ***************************************************************************************************************************************************************
ok: [localhost]

TASK [manage_ec2_instances : set variables for instance creation dynamically since VPC was not supplied by user (SECURITY MODE)] ***********************************************************************************************************************************************
skipping: [localhost]

TASK [manage_ec2_instances : Create ssh key pair for workshop renatoworkshop] **************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [manage_ec2_instances : save private key] *********************************************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [manage_ec2_instances : debugging all variables for ec2 instance creation VPC-1] ******************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [manage_ec2_instances : debugging all variables for ec2 instance creation VPC-1 (SECURITY MODE)] **************************************************************************************************************************************************************************
skipping: [localhost]

TASK [manage_ec2_instances : provision networking aws resources] ***************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [manage_ec2_instances : find ami for ansible control node] ****************************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: The 'ec2_ami_facts' module has been renamed to 'ec2_ami_info'. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
ok: [localhost]

TASK [manage_ec2_instances : save ami for ansible control node] ****************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [manage_ec2_instances : Create EC2 instances for ansible node (control node)] *********************************************************************************************************************************************************************************************
changed: [localhost]

TASK [manage_ec2_instances : Ensure tags are present] **************************************************************************************************************************************************************************************************************************
changed: [localhost] => (item=[0, 'i-0d3cf3172b0143812'])

TASK [manage_ec2_instances : provision workshop instances] *********************************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: ec2_eni_facts is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.
included: /Users/rengonca/Documents/GitHub/workshops/provisioner/roles/manage_ec2_instances/tasks/instances_f5.yml for localhost

TASK [manage_ec2_instances : find ami for f5 (F5 MODE)] ************************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [manage_ec2_instances : save ami for f5 (F5 MODE)] ************************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [manage_ec2_instances : Create EC2 instances for f5 node (F5 MODE)] *******************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [manage_ec2_instances : Ensure tags are present for f5 node (F5 MODE)] ****************************************************************************************************************************************************************************************************
changed: [localhost] => (item=[0, 'i-062dca64d004b9ff9'])

TASK [manage_ec2_instances : find ami for host1 & host2 (F5 MODE)] *************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [manage_ec2_instances : save ami for host1 & host2 (F5 MODE)] *************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [manage_ec2_instances : Create EC2 instances for host1 node in VPC (F5 MODE)] *********************************************************************************************************************************************************************************************
changed: [localhost]

TASK [manage_ec2_instances : Ensure tags are present for host1 node (F5 MODE)] *************************************************************************************************************************************************************************************************
changed: [localhost] => (item=[0, 'i-0a4d9ddd411d89c6f'])

TASK [manage_ec2_instances : Create EC2 instances for host2 node in VPC (F5 MODE)] *********************************************************************************************************************************************************************************************
changed: [localhost]

TASK [manage_ec2_instances : Ensure tags are present for host2 node (F5 MODE)] *************************************************************************************************************************************************************************************************
changed: [localhost] => (item=[0, 'i-0df23b7f1abcac552'])

TASK [manage_ec2_instances : grab all network interfaces for VPC 1 (F5 MODE)] **************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: The 'ec2_eni_facts' module has been renamed to 'ec2_eni_info'. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
ok: [localhost]

TASK [manage_ec2_instances : Disable Source/Dest check on instance vpc-0c9b0255109e46858 (F5 MODE)] ****************************************************************************************************************************************************************************
changed: [localhost] => (item={'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-81-77-166.compute-1.amazonaws.com', 'public_ip': '54.81.77.166'}, 'attachment': {'attach_time': '2019-11-23T21:22:33+00:00', 'attachment_id': 'eni-attach-0b8ce27bd36c64310', 'delete_on_termination': True, 'device_index': 0, 'instance_id': 'i-0d3cf3172b0143812', 'instance_owner_id': '213576388750', 'status': 'attached'}, 'availability_zone': 'us-east-1a', 'description': '', 'groups': [{'group_name': 'renatoworkshop-insecure_all', 'group_id': 'sg-0c78043d7d0add2f6'}], 'interface_type': 'interface', 'ipv6_addresses': [], 'mac_address': '0e:9e:02:85:df:0b', 'network_interface_id': 'eni-05aae9ba50420b9a6', 'owner_id': '213576388750', 'private_dns_name': 'ip-172-16-150-202.ec2.internal', 'private_ip_address': '172.16.150.202', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-81-77-166.compute-1.amazonaws.com', 'public_ip': '54.81.77.166'}, 'primary': True, 'private_dns_name': 'ip-172-16-150-202.ec2.internal', 'private_ip_address': '172.16.150.202'}], 'requester_managed': False, 'source_dest_check': True, 'status': 'in-use', 'subnet_id': 'subnet-0f01e4442dbd2bcf5', 'tag_set': {}, 'vpc_id': 'vpc-0c9b0255109e46858', 'id': 'eni-05aae9ba50420b9a6'})
changed: [localhost] => (item={'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-152-8-9.compute-1.amazonaws.com', 'public_ip': '54.152.8.9'}, 'attachment': {'attach_time': '2019-11-23T21:23:40+00:00', 'attachment_id': 'eni-attach-07a5edd7c54bc79db', 'delete_on_termination': True, 'device_index': 0, 'instance_id': 'i-0a4d9ddd411d89c6f', 'instance_owner_id': '213576388750', 'status': 'attached'}, 'availability_zone': 'us-east-1a', 'description': '', 'groups': [{'group_name': 'renatoworkshop-insecure_all', 'group_id': 'sg-0c78043d7d0add2f6'}], 'interface_type': 'interface', 'ipv6_addresses': [], 'mac_address': '0e:bd:1c:da:02:f5', 'network_interface_id': 'eni-0f7e9a995a269e0cd', 'owner_id': '213576388750', 'private_dns_name': 'ip-172-16-137-63.ec2.internal', 'private_ip_address': '172.16.137.63', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-152-8-9.compute-1.amazonaws.com', 'public_ip': '54.152.8.9'}, 'primary': True, 'private_dns_name': 'ip-172-16-137-63.ec2.internal', 'private_ip_address': '172.16.137.63'}], 'requester_managed': False, 'source_dest_check': True, 'status': 'in-use', 'subnet_id': 'subnet-0f01e4442dbd2bcf5', 'tag_set': {}, 'vpc_id': 'vpc-0c9b0255109e46858', 'id': 'eni-0f7e9a995a269e0cd'})
changed: [localhost] => (item={'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-34-235-132-203.compute-1.amazonaws.com', 'public_ip': '34.235.132.203'}, 'attachment': {'attach_time': '2019-11-23T21:23:15+00:00', 'attachment_id': 'eni-attach-059a78733ce8d057c', 'delete_on_termination': True, 'device_index': 0, 'instance_id': 'i-062dca64d004b9ff9', 'instance_owner_id': '213576388750', 'status': 'attached'}, 'availability_zone': 'us-east-1a', 'description': '', 'groups': [{'group_name': 'renatoworkshop-insecure_all', 'group_id': 'sg-0c78043d7d0add2f6'}], 'interface_type': 'interface', 'ipv6_addresses': [], 'mac_address': '0e:8d:1c:5b:f2:d1', 'network_interface_id': 'eni-067c286736ea1b8b6', 'owner_id': '213576388750', 'private_dns_name': 'ip-172-16-104-83.ec2.internal', 'private_ip_address': '172.16.104.83', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-34-235-132-203.compute-1.amazonaws.com', 'public_ip': '34.235.132.203'}, 'primary': True, 'private_dns_name': 'ip-172-16-104-83.ec2.internal', 'private_ip_address': '172.16.104.83'}], 'requester_managed': False, 'source_dest_check': True, 'status': 'in-use', 'subnet_id': 'subnet-0f01e4442dbd2bcf5', 'tag_set': {}, 'vpc_id': 'vpc-0c9b0255109e46858', 'id': 'eni-067c286736ea1b8b6'})
changed: [localhost] => (item={'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-34-204-74-174.compute-1.amazonaws.com', 'public_ip': '34.204.74.174'}, 'attachment': {'attach_time': '2019-11-23T21:24:08+00:00', 'attachment_id': 'eni-attach-00e9f592c818006e5', 'delete_on_termination': True, 'device_index': 0, 'instance_id': 'i-0df23b7f1abcac552', 'instance_owner_id': '213576388750', 'status': 'attached'}, 'availability_zone': 'us-east-1a', 'description': '', 'groups': [{'group_name': 'renatoworkshop-insecure_all', 'group_id': 'sg-0c78043d7d0add2f6'}], 'interface_type': 'interface', 'ipv6_addresses': [], 'mac_address': '0e:72:65:5b:0f:83', 'network_interface_id': 'eni-0a5410a5a03124194', 'owner_id': '213576388750', 'private_dns_name': 'ip-172-16-179-213.ec2.internal', 'private_ip_address': '172.16.179.213', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-34-204-74-174.compute-1.amazonaws.com', 'public_ip': '34.204.74.174'}, 'primary': True, 'private_dns_name': 'ip-172-16-179-213.ec2.internal', 'private_ip_address': '172.16.179.213'}], 'requester_managed': False, 'source_dest_check': True, 'status': 'in-use', 'subnet_id': 'subnet-0f01e4442dbd2bcf5', 'tag_set': {}, 'vpc_id': 'vpc-0c9b0255109e46858', 'id': 'eni-0a5410a5a03124194'})

TASK [manage_ec2_instances : create instructor_inventory, and student files] ***************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: ec2_instance_facts is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by
 setting deprecation_warnings=False in ansible.cfg.
included: /Users/rengonca/Documents/GitHub/workshops/provisioner/roles/manage_ec2_instances/tasks/create_inventory.yml for localhost

TASK [manage_ec2_instances : grab facts for control_nodes] *********************************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: The 'ec2_instance_facts' module has been renamed to 'ec2_instance_info'. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
ok: [localhost]

TASK [manage_ec2_instances : add ansible node to control_nodes and managed_nodes group] ****************************************************************************************************************************************************************************************
changed: [localhost] => (item={'ami_launch_index': 0, 'image_id': 'ami-045c6a49807585f97', 'instance_id': 'i-0d3cf3172b0143812', 'instance_type': 't2.medium', 'key_name': 'renatoworkshop-key', 'launch_time': '2019-11-23T21:22:33+00:00', 'monitoring': {'state': 'disabled'}, 'placement': {'availability_zone': 'us-east-1a', 'group_name': '', 'tenancy': 'default'}, 'private_dns_name': 'ip-172-16-150-202.ec2.internal', 'private_ip_address': '172.16.150.202', 'product_codes': [], 'public_dns_name': 'ec2-54-81-77-166.compute-1.amazonaws.com', 'public_ip_address': '54.81.77.166', 'state': {'code': 16, 'name': 'running'}, 'state_transition_reason': '', 'subnet_id': 'subnet-0f01e4442dbd2bcf5', 'vpc_id': 'vpc-0c9b0255109e46858', 'architecture': 'x86_64', 'block_device_mappings': [{'device_name': '/dev/sda1', 'ebs': {'attach_time': '2019-11-23T21:22:34+00:00', 'delete_on_termination': True, 'status': 'attached', 'volume_id': 'vol-056b197e72ebd5ea8'}}], 'client_token': '', 'ebs_optimized': False, 'ena_support': True, 'hypervisor': 'xen', 'network_interfaces': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-81-77-166.compute-1.amazonaws.com', 'public_ip': '54.81.77.166'}, 'attachment': {'attach_time': '2019-11-23T21:22:33+00:00', 'attachment_id': 'eni-attach-0b8ce27bd36c64310', 'delete_on_termination': True, 'device_index': 0, 'status': 'attached'}, 'description': '', 'groups': [{'group_name': 'renatoworkshop-insecure_all', 'group_id': 'sg-0c78043d7d0add2f6'}], 'ipv6_addresses': [], 'mac_address': '0e:9e:02:85:df:0b', 'network_interface_id': 'eni-05aae9ba50420b9a6', 'owner_id': '213576388750', 'private_dns_name': 'ip-172-16-150-202.ec2.internal', 'private_ip_address': '172.16.150.202', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-81-77-166.compute-1.amazonaws.com', 'public_ip': '54.81.77.166'}, 'primary': True, 'private_dns_name': 'ip-172-16-150-202.ec2.internal', 'private_ip_address': '172.16.150.202'}], 'source_dest_check': False, 'status': 'in-use', 'subnet_id': 'subnet-0f01e4442dbd2bcf5', 'vpc_id': 'vpc-0c9b0255109e46858', 'interface_type': 'interface'}], 'root_device_name': '/dev/sda1', 'root_device_type': 'ebs', 'security_groups': [{'group_name': 'renatoworkshop-insecure_all', 'group_id': 'sg-0c78043d7d0add2f6'}], 'source_dest_check': False, 'tags': {'Info': 'AWS_USERNAME that provisioned this-> arn:aws:iam::213576388750:root', 'Students': '1', 'Student': 'student1', 'Name': 'renatoworkshop-student1-ansible', 'Workshop': 'renatoworkshop', 'Workshop_ansible': 'renatoworkshop-ansible', 'Linklight': 'This was provisioned through the linklight provisioner', 'short_name': 'ansible', 'username': 'ec2-user', 'ansible_network_os': 'eos', 'Index': '0', 'AWS_USERNAME': 'arn:aws:iam::213576388750:root'}, 'virtualization_type': 'hvm', 'cpu_options': {'core_count': 2, 'threads_per_core': 1}, 'capacity_reservation_specification': {'capacity_reservation_preference': 'open'}, 'hibernation_options': {'configured': False}, 'metadata_options': {'state': 'applied', 'http_tokens': 'optional', 'http_put_response_hop_limit': 1, 'http_endpoint': 'enabled'}})

TASK [manage_ec2_instances : RHEL mode - setup inventory] **********************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [manage_ec2_instances : networking mode - setup inventory] ****************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [manage_ec2_instances : f5 mode - setup inventory] ************************************************************************************************************************************************************************************************************************
included: /Users/rengonca/Documents/GitHub/workshops/provisioner/roles/manage_ec2_instances/tasks/addhost_f5.yml for localhost

TASK [manage_ec2_instances : grab facts for f5 node (F5 MODE)] *****************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [manage_ec2_instances : add f5 to groups (F5 MODE)] ***********************************************************************************************************************************************************************************************************************
changed: [localhost] => (item={'ami_launch_index': 0, 'image_id': 'ami-0fd93d6fc2d8c63ee', 'instance_id': 'i-062dca64d004b9ff9', 'instance_type': 't2.large', 'key_name': 'renatoworkshop-key', 'launch_time': '2019-11-23T21:23:15+00:00', 'monitoring': {'state': 'disabled'}, 'placement': {'availability_zone': 'us-east-1a', 'group_name': '', 'tenancy': 'default'}, 'private_dns_name': 'ip-172-16-104-83.ec2.internal', 'private_ip_address': '172.16.104.83', 'product_codes': [{'product_code_id': '8esk90vx7v713sa0muq2skw3j', 'product_code_type': 'marketplace'}], 'public_dns_name': 'ec2-34-235-132-203.compute-1.amazonaws.com', 'public_ip_address': '34.235.132.203', 'state': {'code': 16, 'name': 'running'}, 'state_transition_reason': '', 'subnet_id': 'subnet-0f01e4442dbd2bcf5', 'vpc_id': 'vpc-0c9b0255109e46858', 'architecture': 'x86_64', 'block_device_mappings': [{'device_name': '/dev/xvda', 'ebs': {'attach_time': '2019-11-23T21:23:15+00:00', 'delete_on_termination': True, 'status': 'attached', 'volume_id': 'vol-0c8e68b4e9931c77c'}}], 'client_token': '', 'ebs_optimized': False, 'ena_support': True, 'hypervisor': 'xen', 'network_interfaces': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-34-235-132-203.compute-1.amazonaws.com', 'public_ip': '34.235.132.203'}, 'attachment': {'attach_time': '2019-11-23T21:23:15+00:00', 'attachment_id': 'eni-attach-059a78733ce8d057c', 'delete_on_termination': True, 'device_index': 0, 'status': 'attached'}, 'description': '', 'groups': [{'group_name': 'renatoworkshop-insecure_all', 'group_id': 'sg-0c78043d7d0add2f6'}], 'ipv6_addresses': [], 'mac_address': '0e:8d:1c:5b:f2:d1', 'network_interface_id': 'eni-067c286736ea1b8b6', 'owner_id': '213576388750', 'private_dns_name': 'ip-172-16-104-83.ec2.internal', 'private_ip_address': '172.16.104.83', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-34-235-132-203.compute-1.amazonaws.com', 'public_ip': '34.235.132.203'}, 'primary': True, 'private_dns_name': 'ip-172-16-104-83.ec2.internal', 'private_ip_address': '172.16.104.83'}], 'source_dest_check': False, 'status': 'in-use', 'subnet_id': 'subnet-0f01e4442dbd2bcf5', 'vpc_id': 'vpc-0c9b0255109e46858', 'interface_type': 'interface'}], 'root_device_name': '/dev/xvda', 'root_device_type': 'ebs', 'security_groups': [{'group_name': 'renatoworkshop-insecure_all', 'group_id': 'sg-0c78043d7d0add2f6'}], 'source_dest_check': False, 'tags': {'Workshop': 'renatoworkshop', 'Students': '1', 'Name': 'renatoworkshop-student1-f5', 'short_name': 'f5', 'Index': '0', 'AWS_USERNAME': 'arn:aws:iam::213576388750:root', 'Info': 'AWS_USERNAME that provisioned this-> arn:aws:iam::213576388750:root', 'Linklight': 'This was provisioned through the linklight provisioner', 'Workshop_f5': 'renatoworkshop-f5', 'username': 'admin', 'Student': 'student1'}, 'virtualization_type': 'hvm', 'cpu_options': {'core_count': 2, 'threads_per_core': 1}, 'capacity_reservation_specification': {'capacity_reservation_preference': 'open'}, 'hibernation_options': {'configured': False}, 'metadata_options': {'state': 'applied', 'http_tokens': 'optional', 'http_put_response_hop_limit': 1, 'http_endpoint': 'enabled'}})

TASK [manage_ec2_instances : grab facts for host1 node (F5 MODE)] **************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [manage_ec2_instances : add host1 to groups (NETWORKING MODE)] ************************************************************************************************************************************************************************************************************
changed: [localhost] => (item={'ami_launch_index': 0, 'image_id': 'ami-045c6a49807585f97', 'instance_id': 'i-0a4d9ddd411d89c6f', 'instance_type': 't2.micro', 'key_name': 'renatoworkshop-key', 'launch_time': '2019-11-23T21:23:40+00:00', 'monitoring': {'state': 'disabled'}, 'placement': {'availability_zone': 'us-east-1a', 'group_name': '', 'tenancy': 'default'}, 'private_dns_name': 'ip-172-16-137-63.ec2.internal', 'private_ip_address': '172.16.137.63', 'product_codes': [], 'public_dns_name': 'ec2-54-152-8-9.compute-1.amazonaws.com', 'public_ip_address': '54.152.8.9', 'state': {'code': 16, 'name': 'running'}, 'state_transition_reason': '', 'subnet_id': 'subnet-0f01e4442dbd2bcf5', 'vpc_id': 'vpc-0c9b0255109e46858', 'architecture': 'x86_64', 'block_device_mappings': [{'device_name': '/dev/sda1', 'ebs': {'attach_time': '2019-11-23T21:23:41+00:00', 'delete_on_termination': True, 'status': 'attached', 'volume_id': 'vol-0acebc0f7320c591a'}}], 'client_token': '', 'ebs_optimized': False, 'ena_support': True, 'hypervisor': 'xen', 'network_interfaces': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-152-8-9.compute-1.amazonaws.com', 'public_ip': '54.152.8.9'}, 'attachment': {'attach_time': '2019-11-23T21:23:40+00:00', 'attachment_id': 'eni-attach-07a5edd7c54bc79db', 'delete_on_termination': True, 'device_index': 0, 'status': 'attached'}, 'description': '', 'groups': [{'group_name': 'renatoworkshop-insecure_all', 'group_id': 'sg-0c78043d7d0add2f6'}], 'ipv6_addresses': [], 'mac_address': '0e:bd:1c:da:02:f5', 'network_interface_id': 'eni-0f7e9a995a269e0cd', 'owner_id': '213576388750', 'private_dns_name': 'ip-172-16-137-63.ec2.internal', 'private_ip_address': '172.16.137.63', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-152-8-9.compute-1.amazonaws.com', 'public_ip': '54.152.8.9'}, 'primary': True, 'private_dns_name': 'ip-172-16-137-63.ec2.internal', 'private_ip_address': '172.16.137.63'}], 'source_dest_check': False, 'status': 'in-use', 'subnet_id': 'subnet-0f01e4442dbd2bcf5', 'vpc_id': 'vpc-0c9b0255109e46858', 'interface_type': 'interface'}], 'root_device_name': '/dev/sda1', 'root_device_type': 'ebs', 'security_groups': [{'group_name': 'renatoworkshop-insecure_all', 'group_id': 'sg-0c78043d7d0add2f6'}], 'source_dest_check': False, 'tags': {'AWS_USERNAME': 'arn:aws:iam::213576388750:root', 'Index': '0', 'Workshop_host1': 'renatoworkshop-host1', 'short_name': 'host1', 'Students': '1', 'Info': 'AWS_USERNAME that provisioned this-> arn:aws:iam::213576388750:root', 'Linklight': 'This was provisioned through the linklight provisioner for F5 workshop', 'Student': 'student1', 'username': 'ec2-user', 'Name': 'renatoworkshop-student1-host1', 'Workshop': 'renatoworkshop'}, 'virtualization_type': 'hvm', 'cpu_options': {'core_count': 1, 'threads_per_core': 1}, 'capacity_reservation_specification': {'capacity_reservation_preference': 'open'}, 'hibernation_options': {'configured': False}, 'metadata_options': {'state': 'applied', 'http_tokens': 'optional', 'http_put_response_hop_limit': 1, 'http_endpoint': 'enabled'}})

TASK [manage_ec2_instances : grab facts for host2 node (F5 MODE)] **************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [manage_ec2_instances : add host2 to groups (NETWORKING MODE)] ************************************************************************************************************************************************************************************************************
changed: [localhost] => (item={'ami_launch_index': 0, 'image_id': 'ami-045c6a49807585f97', 'instance_id': 'i-0df23b7f1abcac552', 'instance_type': 't2.micro', 'key_name': 'renatoworkshop-key', 'launch_time': '2019-11-23T21:24:08+00:00', 'monitoring': {'state': 'disabled'}, 'placement': {'availability_zone': 'us-east-1a', 'group_name': '', 'tenancy': 'default'}, 'private_dns_name': 'ip-172-16-179-213.ec2.internal', 'private_ip_address': '172.16.179.213', 'product_codes': [], 'public_dns_name': 'ec2-34-204-74-174.compute-1.amazonaws.com', 'public_ip_address': '34.204.74.174', 'state': {'code': 16, 'name': 'running'}, 'state_transition_reason': '', 'subnet_id': 'subnet-0f01e4442dbd2bcf5', 'vpc_id': 'vpc-0c9b0255109e46858', 'architecture': 'x86_64', 'block_device_mappings': [{'device_name': '/dev/sda1', 'ebs': {'attach_time': '2019-11-23T21:24:09+00:00', 'delete_on_termination': True, 'status': 'attached', 'volume_id': 'vol-087e6cec00a1b37b5'}}], 'client_token': '', 'ebs_optimized': False, 'ena_support': True, 'hypervisor': 'xen', 'network_interfaces': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-34-204-74-174.compute-1.amazonaws.com', 'public_ip': '34.204.74.174'}, 'attachment': {'attach_time': '2019-11-23T21:24:08+00:00', 'attachment_id': 'eni-attach-00e9f592c818006e5', 'delete_on_termination': True, 'device_index': 0, 'status': 'attached'}, 'description': '', 'groups': [{'group_name': 'renatoworkshop-insecure_all', 'group_id': 'sg-0c78043d7d0add2f6'}], 'ipv6_addresses': [], 'mac_address': '0e:72:65:5b:0f:83', 'network_interface_id': 'eni-0a5410a5a03124194', 'owner_id': '213576388750', 'private_dns_name': 'ip-172-16-179-213.ec2.internal', 'private_ip_address': '172.16.179.213', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-34-204-74-174.compute-1.amazonaws.com', 'public_ip': '34.204.74.174'}, 'primary': True, 'private_dns_name': 'ip-172-16-179-213.ec2.internal', 'private_ip_address': '172.16.179.213'}], 'source_dest_check': False, 'status': 'in-use', 'subnet_id': 'subnet-0f01e4442dbd2bcf5', 'vpc_id': 'vpc-0c9b0255109e46858', 'interface_type': 'interface'}], 'root_device_name': '/dev/sda1', 'root_device_type': 'ebs', 'security_groups': [{'group_name': 'renatoworkshop-insecure_all', 'group_id': 'sg-0c78043d7d0add2f6'}], 'source_dest_check': False, 'tags': {'Info': 'AWS_USERNAME that provisioned this-> arn:aws:iam::213576388750:root', 'Workshop': 'renatoworkshop', 'Student': 'student1', 'short_name': 'host2', 'Linklight': 'This was provisioned through the linklight provisioner for F5 workshop', 'username': 'ec2-user', 'Workshop_host2': 'renatoworkshop-host2', 'Index': '0', 'Name': 'renatoworkshop-student1-host2', 'AWS_USERNAME': 'arn:aws:iam::213576388750:root', 'Students': '1'}, 'virtualization_type': 'hvm', 'cpu_options': {'core_count': 1, 'threads_per_core': 1}, 'capacity_reservation_specification': {'capacity_reservation_preference': 'open'}, 'hibernation_options': {'configured': False}, 'metadata_options': {'state': 'applied', 'http_tokens': 'optional', 'http_put_response_hop_limit': 1, 'http_endpoint': 'enabled'}})

TASK [manage_ec2_instances : Generate student inventories] *********************************************************************************************************************************************************************************************************************
changed: [localhost] => (item=1)

TASK [manage_ec2_instances : Generate student etchosts] ************************************************************************************************************************************************************************************************************************
changed: [localhost] => (item=1)

TASK [manage_ec2_instances : Generate instructor inventory] ********************************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [manage_ec2_instances : security mode - setup inventory] ******************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [manage_ec2_instances : windows mode - setup inventory] *******************************************************************************************************************************************************************************************************************
skipping: [localhost]

PLAY [wait for all nodes to have SSH reachability] *****************************************************************************************************************************************************************************************************************************

TASK [connectivity_test : Wait 400 seconds (using wait_for_connection)] ********************************************************************************************************************************************************************************************************
ok: [renatoworkshop-student1-ansible]
ok: [renatoworkshop-student1-host1]
ok: [renatoworkshop-student1-host2]

PLAY [Configure common options on managed nodes and control nodes] *************************************************************************************************************************************************************************************************************

TASK [user_accounts : Create User Group] ***************************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-host2]
changed: [renatoworkshop-student1-host1]
changed: [renatoworkshop-student1-ansible]

TASK [user_accounts : Create User Account] *************************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]
changed: [renatoworkshop-student1-host1]
changed: [renatoworkshop-student1-host2]

TASK [common : Configure sshd and sudoers] *************************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible] => (item={'dest': '/etc/ssh/sshd_config', 'regexp': '^#?Port', 'line': 'Port 22', 'validate': 'sshd -t -f %s'})
changed: [renatoworkshop-student1-host2] => (item={'dest': '/etc/ssh/sshd_config', 'regexp': '^#?Port', 'line': 'Port 22', 'validate': 'sshd -t -f %s'})
changed: [renatoworkshop-student1-host1] => (item={'dest': '/etc/ssh/sshd_config', 'regexp': '^#?Port', 'line': 'Port 22', 'validate': 'sshd -t -f %s'})
changed: [renatoworkshop-student1-ansible] => (item={'dest': '/etc/ssh/sshd_config', 'regexp': '^#?PasswordAuthentication', 'line': 'PasswordAuthentication yes', 'validate': 'sshd -t -f %s'})
changed: [renatoworkshop-student1-host2] => (item={'dest': '/etc/ssh/sshd_config', 'regexp': '^#?PasswordAuthentication', 'line': 'PasswordAuthentication yes', 'validate': 'sshd -t -f %s'})
changed: [renatoworkshop-student1-host1] => (item={'dest': '/etc/ssh/sshd_config', 'regexp': '^#?PasswordAuthentication', 'line': 'PasswordAuthentication yes', 'validate': 'sshd -t -f %s'})
changed: [renatoworkshop-student1-ansible] => (item={'dest': '/etc/ssh/sshd_config', 'regexp': '^#?UseDNS', 'line': 'UseDNS no', 'validate': 'sshd -t -f %s'})
changed: [renatoworkshop-student1-host2] => (item={'dest': '/etc/ssh/sshd_config', 'regexp': '^#?UseDNS', 'line': 'UseDNS no', 'validate': 'sshd -t -f %s'})
changed: [renatoworkshop-student1-host1] => (item={'dest': '/etc/ssh/sshd_config', 'regexp': '^#?UseDNS', 'line': 'UseDNS no', 'validate': 'sshd -t -f %s'})
changed: [renatoworkshop-student1-ansible] => (item={'dest': '/etc/sudoers', 'regexp': '^student1', 'line': 'student1 ALL=(ALL) NOPASSWD: ALL', 'validate': 'visudo -cf %s'})
changed: [renatoworkshop-student1-host1] => (item={'dest': '/etc/sudoers', 'regexp': '^student1', 'line': 'student1 ALL=(ALL) NOPASSWD: ALL', 'validate': 'visudo -cf %s'})
changed: [renatoworkshop-student1-host2] => (item={'dest': '/etc/sudoers', 'regexp': '^student1', 'line': 'student1 ALL=(ALL) NOPASSWD: ALL', 'validate': 'visudo -cf %s'})
changed: [renatoworkshop-student1-ansible] => (item={'dest': '/etc/sudoers', 'regexp': '^Defaults.*requiretty', 'line': 'Defaults    !requiretty', 'validate': 'visudo -cf %s'})
changed: [renatoworkshop-student1-host1] => (item={'dest': '/etc/sudoers', 'regexp': '^Defaults.*requiretty', 'line': 'Defaults    !requiretty', 'validate': 'visudo -cf %s'})
changed: [renatoworkshop-student1-host2] => (item={'dest': '/etc/sudoers', 'regexp': '^Defaults.*requiretty', 'line': 'Defaults    !requiretty', 'validate': 'visudo -cf %s'})

TASK [common : hostname] *******************************************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-host1]
changed: [renatoworkshop-student1-host2]
changed: [renatoworkshop-student1-ansible]

TASK [common : Update rh-amazon-rhui-client to latest] *************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-host2]
changed: [renatoworkshop-student1-host1]
changed: [renatoworkshop-student1-ansible]

TASK [common : command] ********************************************************************************************************************************************************************************************************************************************************
[WARNING]: Consider using the yum, dnf or zypper module rather than running 'rpm'.  If you need to use command because yum, dnf or zypper is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this
message.

changed: [renatoworkshop-student1-host2]
changed: [renatoworkshop-student1-ansible]
changed: [renatoworkshop-student1-host1]

TASK [common : set_fact] *******************************************************************************************************************************************************************************************************************************************************
ok: [renatoworkshop-student1-ansible]
ok: [renatoworkshop-student1-host1]
ok: [renatoworkshop-student1-host2]

TASK [common : set_fact] *******************************************************************************************************************************************************************************************************************************************************
skipping: [renatoworkshop-student1-ansible]
skipping: [renatoworkshop-student1-host1]
skipping: [renatoworkshop-student1-host2]

TASK [common : set_fact] *******************************************************************************************************************************************************************************************************************************************************
ok: [renatoworkshop-student1-ansible]
ok: [renatoworkshop-student1-host1]
ok: [renatoworkshop-student1-host2]

TASK [common : enable rhui repositories] ***************************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-host2] => (item=rhel-7-server-rhui-extras-rpms)
changed: [renatoworkshop-student1-ansible] => (item=rhel-7-server-rhui-extras-rpms)
changed: [renatoworkshop-student1-host1] => (item=rhel-7-server-rhui-extras-rpms)
changed: [renatoworkshop-student1-host2] => (item=rhel-7-server-rhui-optional-rpms)
changed: [renatoworkshop-student1-ansible] => (item=rhel-7-server-rhui-optional-rpms)
changed: [renatoworkshop-student1-host1] => (item=rhel-7-server-rhui-optional-rpms)
changed: [renatoworkshop-student1-host2] => (item=rhel-server-rhui-rhscl-7-rpms)
[WARNING]: The value 1 (type int) in a string field was converted to u'1' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change.

changed: [renatoworkshop-student1-ansible] => (item=rhel-server-rhui-rhscl-7-rpms)
changed: [renatoworkshop-student1-host1] => (item=rhel-server-rhui-rhscl-7-rpms)

RUNNING HANDLER [common : restart ssh] *****************************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-host2]
changed: [renatoworkshop-student1-host1]
changed: [renatoworkshop-student1-ansible]

PLAY [CONFIGURE CONTROL NODE] **************************************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************************
ok: [renatoworkshop-student1-ansible]

TASK [control_node : Install EPEL] *********************************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : Install base packages] ************************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : Install ansible.cfg and vimrc in home directory] **********************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : Install vimrc in home directory] **************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : Get latest release of Coder binary] ***********************************************************************************************************************************************************************************************************************
ok: [renatoworkshop-student1-ansible]

TASK [control_node : Save url for extraction of Coder binary] ******************************************************************************************************************************************************************************************************************
skipping: [renatoworkshop-student1-ansible] => (item=https://github.com/cdr/code-server/releases/download/2.1692-vsc1.39.2/code-server2.1692-vsc1.39.2-alpine-x86_64.tar.gz)
skipping: [renatoworkshop-student1-ansible] => (item=https://github.com/cdr/code-server/releases/download/2.1692-vsc1.39.2/code-server2.1692-vsc1.39.2-darwin-x86_64.zip)
ok: [renatoworkshop-student1-ansible] => (item=https://github.com/cdr/code-server/releases/download/2.1692-vsc1.39.2/code-server2.1692-vsc1.39.2-linux-x86_64.tar.gz)

TASK [control_node : Extract file] *********************************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : Install ansible vscode extension] *************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : Move binary to /opt] **************************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : Apply systemd service file] *******************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : Start code-server service] ********************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : Cleanup Coder binary from student directory] **************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : setup control node networking] ****************************************************************************************************************************************************************************************************************************
included: /Users/rengonca/Documents/GitHub/workshops/provisioner/roles/control_node/tasks/networking.yml for renatoworkshop-student1-ansible

TASK [control_node : upgrade pip and setuptools] *******************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : install f5 workshop dependicies (F5 AUTOMATION MODE)] *****************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : install additional packages (NETWORK AUTOMATION MODE)] ****************************************************************************************************************************************************************************************************
skipping: [renatoworkshop-student1-ansible]

TASK [control_node : clean out /tmp/linklight] *********************************************************************************************************************************************************************************************************************************
ok: [renatoworkshop-student1-ansible]

TASK [control_node : Clone workshops repo (NETWORKING MODE)] *******************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : Move networking workshop folder to correct location  (NETWORKING MODE)] ***********************************************************************************************************************************************************************************
skipping: [renatoworkshop-student1-ansible]

TASK [control_node : Create demos folder with demos] ***************************************************************************************************************************************************************************************************************************
skipping: [renatoworkshop-student1-ansible]

TASK [control_node : Move networking workshop folder to correct location  (F5 MODE)] *******************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : Create lab inventory directory (NETWORKING MODE)] *********************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : Put student inventory in proper spot (NETWORKING MODE)] ***************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : make sure .ssh is created] ********************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : Put ssh-key in proper spot for student] *******************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : Put ssh-key in proper for ec2-user] ***********************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : copy over ssh config file for student] ********************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : copy over ssh config file for ec2-user] *******************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : setup /etc/hosts file per student] ************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : setup control node security automation] *******************************************************************************************************************************************************************************************************************
skipping: [renatoworkshop-student1-ansible]

TASK [control_node : RHEL mode - setup control node] ***************************************************************************************************************************************************************************************************************************
skipping: [renatoworkshop-student1-ansible]

TASK [control_node : Windows mode - setup control node] ************************************************************************************************************************************************************************************************************************
skipping: [renatoworkshop-student1-ansible]

TASK [control_node : check to see if ansible tower is already up and running] **************************************************************************************************************************************************************************************************
skipping: [renatoworkshop-student1-ansible]

TASK [control_node : install tower if knob is set] *****************************************************************************************************************************************************************************************************************************
skipping: [renatoworkshop-student1-ansible]

TASK [control_node : Ensure eula is accepted if posting license] ***************************************************************************************************************************************************************************************************************
skipping: [renatoworkshop-student1-ansible]

TASK [control_node : Post license key] *****************************************************************************************************************************************************************************************************************************************
skipping: [renatoworkshop-student1-ansible]

TASK [control_node : INSTALL VSCODE AND XRDP] **********************************************************************************************************************************************************************************************************************************
included: /Users/rengonca/Documents/GitHub/workshops/provisioner/roles/control_node/tasks/gui.yml for renatoworkshop-student1-ansible

TASK [control_node : ADD THE KEY FOR VSCODE] ***********************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : ADD THE VSCODE RPM INFO] **********************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : ENSURE XRDP IS INSTALLED] *********************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : ENSURE XFCE IS INSTALLED] *********************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : ENSURE XCLIENTS IS PRESENT] *******************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : ENSURE XFCE IS CONFIGURED] ********************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : ENSURE VSCODE IS INSTALLED] *******************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

TASK [control_node : Start xrdp service] ***************************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible]

PLAY [ADD DNS ENTRIES FOR ALL STUDENT TOWER NODES] *****************************************************************************************************************************************************************************************************************************

TASK [aws_dns : REMOVE DNS ENTRIES FOR EACH TOWER NODE] ************************************************************************************************************************************************************************************************************************
skipping: [renatoworkshop-student1-ansible]

TASK [aws_dns : CHECK TO SEE IF SSL CERT ALREADY APPLIED] **********************************************************************************************************************************************************************************************************************
fatal: [renatoworkshop-student1-ansible]: FAILED! => changed=false
  content: ''
  elapsed: 0
  msg: 'Status code was -1 and not [200]: Request failed: <urlopen error [Errno 111] Connection refused>'
  redirected: false
  status: -1
  url: https://student1.renatoworkshop.rmarcandier.net/api/v2/ping/
...ignoring

TASK [aws_dns : CREATE DNS ENTRIES FOR EACH TOWER NODE AND SSL CERT] ***********************************************************************************************************************************************************************************************************
included: /Users/rengonca/Documents/GitHub/workshops/provisioner/roles/aws_dns/tasks/create.yml for renatoworkshop-student1-ansible

TASK [aws_dns : dns for student webpage] ***************************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-ansible -> localhost]

TASK [aws_dns : CERTBOT FOR TOWER] *********************************************************************************************************************************************************************************************************************************************
skipping: [renatoworkshop-student1-ansible]

PLAY [Setup Amazon S3 Website for Student Login] *******************************************************************************************************************************************************************************************************************************

TASK [aws_workshop_login_page : CREATE STUDENT WEBPAGE] ************************************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [aws_workshop_login_page : CREATE S3 BUCKET] ******************************************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [aws_workshop_login_page : ENABLE WEB HOSTING] ****************************************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [aws_workshop_login_page : DNS FOR STUDENT WEBPAGE FOR US-EAST-1] *********************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [aws_workshop_login_page : DNS FOR WEBPAGE] *******************************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [aws_workshop_login_page : PUT STUDENT WEBPAGE] ***************************************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [aws_workshop_login_page : SET WEBSITE INFORMATION VARIABLE] **************************************************************************************************************************************************************************************************************
ok: [localhost]

PLAY [CONFIGURE F5 WORKSHOP WEBSERVERS host1 and host2] ************************************************************************************************************************************************************************************************************************

TASK [webservers : install apache] *********************************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-host1]
changed: [renatoworkshop-student1-host2]

TASK [webservers : start httpd] ************************************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-host1]
changed: [renatoworkshop-student1-host2]

TASK [webservers : copy index.html] ********************************************************************************************************************************************************************************************************************************************
changed: [renatoworkshop-student1-host1]
changed: [renatoworkshop-student1-host2]

PLAY [setup f5 nodes] **********************************************************************************************************************************************************************************************************************************************************

TASK [f5_setup : Wait for BIG-IP to boot up completely] ************************************************************************************************************************************************************************************************************************
ok: [renatoworkshop-student1-f5]

TASK [f5_setup : Change BIG-IP F5 mgmt password] *******************************************************************************************************************************************************************************************************************************
[WARNING]: Using "write" commands is not idempotent. You should use a module that is specifically made for that. If such a module does not exist, then please file a bug. The command in question is "modify auth user admin password ansible..."

changed: [renatoworkshop-student1-f5]

TASK [f5_setup : Wait for API to be Ready] *************************************************************************************************************************************************************************************************************************************
ok: [renatoworkshop-student1-f5 -> localhost]

TASK [f5_setup : Install AS3] **************************************************************************************************************************************************************************************************************************************************
fatal: [renatoworkshop-student1-f5]: FAILED! => changed=false
  cmd: rpm -qp --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}' /Users/rengonca/Documents/GitHub/workshops/provisioner/roles/f5_setup/files/f5-appsvcs-3.4.0-2.noarch.rpm
  msg: '[Errno 2] No such file or directory'
  rc: 2

PLAY RECAP *********************************************************************************************************************************************************************************************************************************************************************
localhost                  : ok=60   changed=30   unreachable=0    failed=0    skipped=29   rescued=0    ignored=0
renatoworkshop-student1-ansible : ok=50   changed=39   unreachable=0    failed=0    skipped=13   rescued=0    ignored=1
renatoworkshop-student1-f5 : ok=3    changed=1    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
renatoworkshop-student1-host1 : ok=14   changed=11   unreachable=0    failed=0    skipped=1    rescued=0    ignored=0
renatoworkshop-student1-host2 : ok=14   changed=11   unreachable=0    failed=0    skipped=1    rescued=0    ignored=0
IPvSean commented 4 years ago
TASK [f5_setup : Install AS3] **************************************************************************************************************************************************************************************************************************************************
fatal: [renatoworkshop-student1-f5]: FAILED! => changed=false
  cmd: rpm -qp --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}' /Users/rengonca/Documents/GitHub/workshops/provisioner/roles/f5_setup/files/f5-appsvcs-3.4.0-2.noarch.rpm
  msg: '[Errno 2] No such file or directory'
  rc: 2

This error is super odd to me.... can you look at your provisioner/roles/f5_setup/files and let me know what is in there (ls provisioner/roles/f5_setup/files)

tagging @ericzji and @focrensh

i am getting errors on this same task... but mine looks just like a timeout and not related to your issue->


An exception occurred during task execution. To see the full traceback, use -vvv. The error was: urllib2.URLError: <urlopen error timed out>

fatal: [tower-qe-f5-tower-devel-null-633-devel-student2-f5]: FAILED! => changed=false 

  module_stderr: |-

    Traceback (most recent call last):

      File "/root/.ansible/tmp/ansible-tmp-1574847320.03-83446807256459/AnsiballZ_bigip_lx_package.py", line 102, in <module>

        _ansiballz_main()

      File "/root/.ansible/tmp/ansible-tmp-1574847320.03-83446807256459/AnsiballZ_bigip_lx_package.py", line 94, in _ansiballz_main

        invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)

      File "/root/.ansible/tmp/ansible-tmp-1574847320.03-83446807256459/AnsiballZ_bigip_lx_package.py", line 40, in invoke_module

        runpy.run_module(mod_name='ansible.modules.network.f5.bigip_lx_package', init_globals=None, run_name='__main__', alter_sys=True)

      File "/usr/lib64/python2.7/runpy.py", line 176, in run_module

        fname, loader, pkg_name)

      File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code

        mod_name, mod_fname, mod_loader, pkg_name)

      File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code

        exec code in run_globals

      File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/modules/network/f5/bigip_lx_package.py", line 480, in <module>

      File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/modules/network/f5/bigip_lx_package.py", line 473, in main

      File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/modules/network/f5/bigip_lx_package.py", line 209, in exec_module

      File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/modules/network/f5/bigip_lx_package.py", line 222, in present

      File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/modules/network/f5/bigip_lx_package.py", line 250, in create

      File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/modules/network/f5/bigip_lx_package.py", line 336, in upload_to_device

      File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/module_utils/network/f5/icontrol.py", line 505, in upload_file

      File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/module_utils/network/f5/icontrol.py", line 238, in post

      File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/module_utils/network/f5/icontrol.py", line 193, in send

      File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/module_utils/urls.py", line 1288, in open

      File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen

        return opener.open(url, data, timeout)

      File "/usr/lib64/python2.7/urllib2.py", line 431, in open

        response = self._open(req, data)

      File "/usr/lib64/python2.7/urllib2.py", line 449, in _open

        '_open', req)

      File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain

        result = func(*args)

      File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/module_utils/urls.py", line 467, in https_open

      File "/usr/lib64/python2.7/urllib2.py", line 1214, in do_open

        raise URLError(err)

    urllib2.URLError: <urlopen error timed out>

  module_stdout: ''

  msg: |-

    MODULE FAILURE

    See stdout/stderr for the exact error

  rc: 1
rmarcandier13 commented 4 years ago

Hey Sean,

Thank you for your reply.

This is the output:

~/Documents/GitHub/workshops master !5 ?1 16:29:58 ❯ ls provisioner/roles/f5_setup/files as3.sh f5-appsvcs-3.4.0-2.noarch.rpm ~/Documents/GitHub/workshops master !5 ?1 16:30:16 ❯ pwd /Users/rengonca/Documents/GitHub/workshops ~/Documents/GitHub/workshops master !5 ?1 16:30:40 ❯

IPvSean commented 4 years ago

you are missing a file in there the as3.sh, can you check the source here and make sure it matches https://github.com/ansible/workshops/tree/master/provisioner/roles/f5_setup/files

rmarcandier13 commented 4 years ago

Hey Sean,

The file is there:

This is the output:

~/Documents/GitHub/workshops master !5 ?1 16:29:58 ❯ ls provisioner/roles/f5_setup/files as3.sh <<<<< ----- f5-appsvcs-3.4.0-2.noarch.rpm . <<<<<------ ~/Documents/GitHub/workshops master !5 ?1 16:30:16 ❯ pwd /Users/rengonca/Documents/GitHub/workshops ~/Documents/GitHub/workshops master !5 ?1 16:30:40 ❯

IPvSean commented 4 years ago

your error is unique to your box, it is saying the playbook can't access the file /Users/rengonca/Documents/GitHub/workshops/provisioner/roles/f5_setup/files/f5-appsvcs-3.4.0-2.noarch.rpm

can you just try re-running? are permissions setup incorrectly? Can you try another box?

IPvSean commented 4 years ago

no response in 8 days