ansible / workshops

Training Course for Ansible Automation Platform
MIT License
1.73k stars 1.13k forks source link

Tower Install Fails (change ansible tower base URL) when enabled with License #958

Closed VDI-Tech-Guy closed 4 years ago

VDI-Tech-Guy commented 4 years ago
SUMMARY

Trying to Install the F5 Workshop with Ansible Tower, 2 failures occur first with Certificates from Letscrypt and the other that fails the task changing the ansible tower base URL.

ISSUE TYPE
EXTRA VARS FILE

ec2_region: us-west-2
ec2_name_prefix: MMABIS-AnsibleTWR-Test
student_total: 1
workshop_type: f5
admin_password: Ansible123!
doubleup: no
## Optional Variables
dns_type: aws
create_login_page: true
autolicense: false
towerinstall: true
tower_license_data: '{
    "company_name": "Domain",
    "contact_email": "user@domain",
    "contact_name": "User",
    "features": {
        "activity_streams": true,
        "enterprise_auth": true,
        "ha": true,
        "ldap": true,
        "multiple_organizations": true,
        "rebranding": true,
        "surveys": true,
        "system_tracking": true,
        "workflows": true
    },
    "hostname": "8.....",
    "instance_count": 100,
    "license_date": 16....,
    "license_key": "fe........",
    "license_type": "basic",
    "subscription_name": "Red Hat Ansible Tower, Self-Support (100 Managed Nodes) NFR"
}'
ANSIBLE VERSION
ansible 2.9.9
  config file = /root/.ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.6.8 (default, Apr  2 2020, 13:34:55) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
CONFIGURATION
DEFAULT_HOST_LIST(/root/.ansible.cfg) = ['/root/networking-workshop/lab_inventory/hosts']
DEFAULT_TIMEOUT(/root/.ansible.cfg) = 60
HOST_KEY_CHECKING(/root/.ansible.cfg) = False
OS / ENVIRONMENT

CentOS Linux release 7.7.1908 (Core)

TOWER

Yes Tower is Failing to install correctly and URL Changes TASK [aws_dns : change ansible tower base URL] ***** FAILED - RETRYING: change ansible tower base URL (5 retries left). FAILED - RETRYING: change ansible tower base URL (4 retries left). FAILED - RETRYING: change ansible tower base URL (3 retries left). FAILED - RETRYING: change ansible tower base URL (2 retries left). FAILED - RETRYING: change ansible tower base URL (1 retries left). fatal: [MMABIS-AnsibleGH-Test-student1-ansible]: FAILED! => changed=false attempts: 5 msg: 'Failed to get token: <urlopen error [Errno 111] Connection refused>'

PLAYBOOK SHORT OUTPUT

TASK [code_server : daemon-reload, enable and start code-server] ***************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [code_server : issue cert] ************************************************
FAILED - RETRYING: issue cert (5 retries left).
FAILED - RETRYING: issue cert (4 retries left).
FAILED - RETRYING: issue cert (3 retries left).
FAILED - RETRYING: issue cert (2 retries left).
FAILED - RETRYING: issue cert (1 retries left).
fatal: [MMABIS-AnsibleTWR-Test-student1-ansible-1]: FAILED! => changed=true
  attempts: 5
  cmd: /usr/local/bin/certbot-auto certonly --no-bootstrap --standalone -d student1-code.mmabis-ansibletwr-test.rhdemo.io --email ansible-network@redhat.com --noninteractive --agree-tos
  delta: '0:00:04.411306'
  end: '2020-08-20 23:05:17.719380'
  msg: non-zero return code
  rc: 1
  start: '2020-08-20 23:05:13.308074'
  stderr: |-
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Plugins selected: Authenticator standalone, Installer None
    Obtaining a new certificate
    An unexpected error occurred:
    There were too many requests of a given type :: Error creating new order :: too many failed authorizations recently: see https://letsencrypt.org/docs/rate-limits/
    Please see the logfiles in /var/log/letsencrypt for more details.
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>
...ignoring

AND

TASK [aws_dns : change ansible tower base URL] *********************************
FAILED - RETRYING: change ansible tower base URL (5 retries left).
FAILED - RETRYING: change ansible tower base URL (4 retries left).
FAILED - RETRYING: change ansible tower base URL (3 retries left).
FAILED - RETRYING: change ansible tower base URL (2 retries left).
FAILED - RETRYING: change ansible tower base URL (1 retries left).
fatal: [MMABIS-AnsibleGH-Test-student1-ansible]: FAILED! => changed=false
  attempts: 5
  msg: 'Failed to get token: <urlopen error [Errno 111] Connection refused>'

PLAY RECAP *********************************************************************
MMABIS-AnsibleGH-Test-student1-ansible : ok=65   changed=48   unreachable=0    failed=1    skipped=2    rescued=0    ignored=1
MMABIS-AnsibleGH-Test-student1-node1 : ok=6    changed=5    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
MMABIS-AnsibleGH-Test-student1-node2 : ok=6    changed=5    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
attendance-host            : ok=26   changed=22   unreachable=0    failed=0    skipped=2    rescued=0    ignored=0
localhost                  : ok=75   changed=33   unreachable=0    failed=0    skipped=11   rescued=0    ignored=0
PLAYBOOK LONG OUTPUT

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

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

TASK [run pre-check role to make sure workshop will complete provisioning] *****

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

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

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

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

TASK [workshop_check_setup : make sure DNS name is 65 characters or less] ******
ok: [localhost] => changed=false
  msg: All assertions passed

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

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

TASK [workshop_check_setup : make sure we are not using `ansible` as the password] ***
ok: [localhost] => changed=false
  msg: All assertions passed

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

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

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

TASK [workshop_check_setup : set_fact] *****************************************
skipping: [localhost]

TASK [workshop_check_setup : set_fact] *****************************************
ok: [localhost]

TASK [workshop_check_setup : Ensure tower license is not expired] **************
ok: [localhost] => changed=false
  msg: All assertions passed

TASK [workshop_check_setup : install product_demos collection] *****************
changed: [localhost] => (item=ansible-galaxy collection install ansible.product_demos --force-with-deps)
changed: [localhost] => (item=ansible-galaxy collection install awx.awx --force-with-deps)

TASK [workshop_check_setup : check workshop specific information] **************
included: /ansible/playbooks/roles/workshop_check_setup/tasks/unsupported_workshop.yml for localhost

TASK [workshop_check_setup : unsupported workshop for workshop_check_setup role] ***
ok: [localhost] =>
  msg: no more setup for workshop_check_setup role the f5 does not have any specific setup specified

TASK [run AWS check setup if using AWS] ****************************************

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 : does route53 zone exist] *******************************
ok: [localhost]

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

TASK [aws_check_setup : FIND AZ ZONE FOR REGION us-west-2] *********************
ok: [localhost]

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

TASK [aws_check_setup : grab information about AWS user] ***********************
ok: [localhost]

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

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

TASK [Cluster nodes] ***********************************************************
skipping: [localhost]

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

TASK [manage_ec2_instances : provision aws resources and instances] ************
included: /ansible/playbooks/roles/manage_ec2_instances/tasks/provision.yml for localhost

TASK [manage_ec2_instances : ensure workshop folder MMABIS-AnsibleTWR-Test exists] ***
changed: [localhost]

TASK [manage_ec2_instances : provision aws resources] **************************
included: /ansible/playbooks/roles/manage_ec2_instances/tasks/resources/resources.yml for localhost

TASK [manage_ec2_instances : Create AWS VPC MMABIS-AnsibleTWR-Test-vpc] ********
changed: [localhost]

TASK [manage_ec2_instances : create file for all AWS security group rules] *****
changed: [localhost -> localhost]

TASK [manage_ec2_instances : include_vars] *************************************
ok: [localhost]

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

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

TASK [manage_ec2_instances : Create subnet for MMABIS-AnsibleTWR-Test-vpc] *****
changed: [localhost]

TASK [manage_ec2_instances : Create subnet2 for MMABIS-AnsibleTWR-Test-vpc (SECURITY MODE)] ***
changed: [localhost]

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

TASK [manage_ec2_instances : vpc public subnet route table is present for vpc-0d0019faa49380c1c] ***
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 : s3 bucket for persistent storage of ec2 key exists] ***
changed: [localhost]

TASK [manage_ec2_instances : Create ssh key pair for workshop MMABIS-AnsibleTWR-Test] ***
changed: [localhost]

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

TASK [manage_ec2_instances : Store SSH Key Pair] *******************************
changed: [localhost]

TASK [manage_ec2_instances : Save Private key from S3 Bucket when not generating it] ***
skipping: [localhost]

TASK [manage_ec2_instances : Ensure key file has proper permissions] ***********
changed: [localhost]

TASK [manage_ec2_instances : debugging all variables for ec2 instance creation VPC-1] ***
ok: [localhost] =>
  msg:
  - 'ec2_name_prefix: MMABIS-AnsibleTWR-Test'
  - 'ec2_vpc_id: vpc-0d0019faa49380c1c'
  - 'MMABIS-AnsibleTWR-Test-key: MMABIS-AnsibleTWR-Test-key'
  - 'ec2_security_group: MMABIS-AnsibleTWR-Test-insecure_all'
  - 'ec2_vpc_subnet_id: subnet-05da3e1645dd3b445'
  - 'ec2_vpc_subnet2_id: subnet-00393870f409b1a54'

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

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

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

TASK [manage_ec2_instances : Create the control clusters] **********************
included: /ansible/playbooks/roles/manage_ec2_instances/tasks/cluster_instances.yml for 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, {'id': 'i-0ebeb084e7d5dc25b', 'ami_launch_index': '0', 'private_ip': '172.16.84.192', 'private_dns_name': 'ip-172-16-84-192.us-west-2.compute.internal', 'public_ip': '54.187.98.104', 'dns_name': 'ec2-54-187-98-104.us-west-2.compute.amazonaws.com', 'public_dns_name': 'ec2-54-187-98-104.us-west-2.compute.amazonaws.com', 'state_code': 16, 'architecture': 'x86_64', 'image_id': 'ami-09a29484f6dd8732d', 'key_name': 'MMABIS-AnsibleTWR-Test-key', 'placement': 'us-west-2a', 'region': 'us-west-2', 'kernel': None, 'ramdisk': None, 'launch_time': '2020-08-20T22:36:51.000Z', 'instance_type': 't2.medium', 'root_device_type': 'ebs', 'root_device_name': '/dev/sda1', 'state': 'running', 'hypervisor': 'xen', 'tags': {'Workshop_type': 'f5', 'AWS_USERNAME': 'mmabis-iam', 'Workshop_ansible': 'MMABIS-AnsibleTWR-Test-ansible-1', 'username': 'ec2-user', 'Ansible_Workshops': 'This was provisioned through the ansible workshops provisioner', 'Students': '1', 'Workshop': 'MMABIS-AnsibleTWR-Test', 'short_name': 'ansible-1', 'Info': 'AWS_USERNAME that provisioned this-> mmabis-iam'}, 'groups': {'sg-06ce41f3d1575e5e3': 'MMABIS-AnsibleTWR-Test-insecure_all'}, 'virtualization_type': 'hvm', 'ebs_optimized': False, 'block_device_mapping': {'/dev/sda1': {'status': 'attached', 'volume_id': 'vol-03a2a1e875ffd4ead', 'delete_on_termination': True}}, 'tenancy': 'default'}])

TASK [manage_ec2_instances : configure attendance host] ************************
included: /ansible/playbooks/roles/manage_ec2_instances/tasks/attendance.yml for localhost

TASK [manage_ec2_instances : Get attendance host ami] **************************
ok: [localhost]

TASK [manage_ec2_instances : Save attendance host ami] *************************
ok: [localhost]

TASK [manage_ec2_instances : Provision attendance host] ************************
changed: [localhost]

TASK [manage_ec2_instances : grab facts for attendance host] *******************
ok: [localhost]

TASK [manage_ec2_instances : Add new instance to host group] *******************
changed: [localhost] => (item={'ami_launch_index': 0, 'image_id': 'ami-09a29484f6dd8732d', 'instance_id': 'i-045bc1314db73f0e6', 'instance_type': 't2.micro', 'key_name': 'MMABIS-AnsibleTWR-Test-key', 'launch_time': '2020-08-20T22:37:18+00:00', 'monitoring': {'state': 'disabled'}, 'placement': {'availability_zone': 'us-west-2a', 'group_name': '', 'tenancy': 'default'}, 'private_dns_name': 'ip-172-16-111-238.us-west-2.compute.internal', 'private_ip_address': '172.16.111.238', 'product_codes': [], 'public_dns_name': 'ec2-54-213-145-69.us-west-2.compute.amazonaws.com', 'public_ip_address': '54.213.145.69', 'state': {'code': 16, 'name': 'running'}, 'state_transition_reason': '', 'subnet_id': 'subnet-05da3e1645dd3b445', 'vpc_id': 'vpc-0d0019faa49380c1c', 'architecture': 'x86_64', 'block_device_mappings': [{'device_name': '/dev/sda1', 'ebs': {'attach_time': '2020-08-20T22:37:18+00:00', 'delete_on_termination': True, 'status': 'attached', 'volume_id': 'vol-0f2f8223d3447bb6c'}}], 'client_token': '', 'ebs_optimized': False, 'ena_support': True, 'hypervisor': 'xen', 'network_interfaces': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-213-145-69.us-west-2.compute.amazonaws.com', 'public_ip': '54.213.145.69'}, 'attachment': {'attach_time': '2020-08-20T22:37:18+00:00', 'attachment_id': 'eni-attach-0e6072a7fd8c17ba9', 'delete_on_termination': True, 'device_index': 0, 'status': 'attached'}, 'description': '', 'groups': [{'group_name': 'MMABIS-AnsibleTWR-Test-insecure_all', 'group_id': 'sg-06ce41f3d1575e5e3'}], 'ipv6_addresses': [], 'mac_address': '06:90:ea:5b:17:e1', 'network_interface_id': 'eni-06e6870fce189f657', 'owner_id': '250871914685', 'private_dns_name': 'ip-172-16-111-238.us-west-2.compute.internal', 'private_ip_address': '172.16.111.238', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-213-145-69.us-west-2.compute.amazonaws.com', 'public_ip': '54.213.145.69'}, 'primary': True, 'private_dns_name': 'ip-172-16-111-238.us-west-2.compute.internal', 'private_ip_address': '172.16.111.238'}], 'source_dest_check': True, 'status': 'in-use', 'subnet_id': 'subnet-05da3e1645dd3b445', 'vpc_id': 'vpc-0d0019faa49380c1c', 'interface_type': 'interface'}], 'root_device_name': '/dev/sda1', 'root_device_type': 'ebs', 'security_groups': [{'group_name': 'MMABIS-AnsibleTWR-Test-insecure_all', 'group_id': 'sg-06ce41f3d1575e5e3'}], 'source_dest_check': True, 'tags': {'Workshop_type': 'f5', 'Info': 'Username that provisioned this-> mmabis-iam', 'Workshop_attendance': 'MMABIS-AnsibleTWR-Test-attendance', 'short_name': 'attendance-host', 'Name': 'MMABIS-AnsibleTWR-Test-attendance', 'AWS_USERNAME': 'mmabis-iam', 'Students': '1', 'Workshop': 'MMABIS-AnsibleTWR-Test', 'username': 'ec2-user', 'long_name': 'attendance-host.MMABIS-AnsibleTWR-Test.rhdemo.io', 'App': 'AnsibleWorkshop', 'Linklight': 'This was provisioned through the linklight provisioner'}, '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 : find correct AMI] *********************************
included: /ansible/playbooks/roles/manage_ec2_instances/tasks/ami_find/ami_find_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 : find ami for node1 & node2 (F5 MODE)] *************
ok: [localhost]

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

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: /ansible/playbooks/roles/manage_ec2_instances/tasks/instances/instances_f5.yml for 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, {'id': 'i-01f63fda94f423647', 'ami_launch_index': '0', 'private_ip': '172.16.197.188', 'private_dns_name': 'ip-172-16-197-188.us-west-2.compute.internal', 'public_ip': '54.190.194.218', 'dns_name': 'ec2-54-190-194-218.us-west-2.compute.amazonaws.com', 'public_dns_name': 'ec2-54-190-194-218.us-west-2.compute.amazonaws.com', 'state_code': 16, 'architecture': 'x86_64', 'image_id': 'ami-0680de6d71c88e0e2', 'key_name': 'MMABIS-AnsibleTWR-Test-key', 'placement': 'us-west-2a', 'region': 'us-west-2', 'kernel': None, 'ramdisk': None, 'launch_time': '2020-08-20T22:37:46.000Z', 'instance_type': 't2.large', 'root_device_type': 'ebs', 'root_device_name': '/dev/xvda', 'state': 'running', 'hypervisor': 'xen', 'tags': {'AWS_USERNAME': 'mmabis-iam', 'Linklight': 'This was provisioned through the linklight provisioner', 'username': 'admin', 'Workshop_type': 'f5', 'Info': 'AWS_USERNAME that provisioned this-> mmabis-iam', 'Students': '1', 'Workshop': 'MMABIS-AnsibleTWR-Test', 'Workshop_f5': 'MMABIS-AnsibleTWR-Test-f5', 'short_name': 'f5'}, 'groups': {'sg-06ce41f3d1575e5e3': 'MMABIS-AnsibleTWR-Test-insecure_all'}, 'virtualization_type': 'hvm', 'ebs_optimized': False, 'block_device_mapping': {'/dev/xvda': {'status': 'attached', 'volume_id': 'vol-0aea0b82586818af2', 'delete_on_termination': True}}, 'tenancy': 'default'}])

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

TASK [manage_ec2_instances : Ensure tags are present for node1 node (F5 MODE)] ***
changed: [localhost] => (item=[0, {'id': 'i-07d73c74a782e4172', 'ami_launch_index': '0', 'private_ip': '172.16.124.197', 'private_dns_name': 'ip-172-16-124-197.us-west-2.compute.internal', 'public_ip': '54.218.209.243', 'dns_name': 'ec2-54-218-209-243.us-west-2.compute.amazonaws.com', 'public_dns_name': 'ec2-54-218-209-243.us-west-2.compute.amazonaws.com', 'state_code': 16, 'architecture': 'x86_64', 'image_id': 'ami-09a29484f6dd8732d', 'key_name': 'MMABIS-AnsibleTWR-Test-key', 'placement': 'us-west-2a', 'region': 'us-west-2', 'kernel': None, 'ramdisk': None, 'launch_time': '2020-08-20T22:38:06.000Z', 'instance_type': 't2.micro', 'root_device_type': 'ebs', 'root_device_name': '/dev/sda1', 'state': 'running', 'hypervisor': 'xen', 'tags': {'Students': '1', 'Workshop': 'MMABIS-AnsibleTWR-Test', 'AWS_USERNAME': 'mmabis-iam', 'Linklight': 'This was provisioned through the linklight provisioner for F5 workshop', 'username': 'ec2-user', 'Info': 'AWS_USERNAME that provisioned this-> mmabis-iam', 'Workshop_node1': 'MMABIS-AnsibleTWR-Test-node1', 'Workshop_type': 'f5', 'short_name': 'node1'}, 'groups': {'sg-06ce41f3d1575e5e3': 'MMABIS-AnsibleTWR-Test-insecure_all'}, 'virtualization_type': 'hvm', 'ebs_optimized': False, 'block_device_mapping': {'/dev/sda1': {'status': 'attached', 'volume_id': 'vol-010b14a97aadbb5dc', 'delete_on_termination': True}}, 'tenancy': 'default'}])

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

TASK [manage_ec2_instances : Ensure tags are present for node2 node (F5 MODE)] ***
changed: [localhost] => (item=[0, {'id': 'i-034916b42cb24c2eb', 'ami_launch_index': '0', 'private_ip': '172.16.173.49', 'private_dns_name': 'ip-172-16-173-49.us-west-2.compute.internal', 'public_ip': '54.184.220.211', 'dns_name': 'ec2-54-184-220-211.us-west-2.compute.amazonaws.com', 'public_dns_name': 'ec2-54-184-220-211.us-west-2.compute.amazonaws.com', 'state_code': 16, 'architecture': 'x86_64', 'image_id': 'ami-09a29484f6dd8732d', 'key_name': 'MMABIS-AnsibleTWR-Test-key', 'placement': 'us-west-2a', 'region': 'us-west-2', 'kernel': None, 'ramdisk': None, 'launch_time': '2020-08-20T22:38:37.000Z', 'instance_type': 't2.micro', 'root_device_type': 'ebs', 'root_device_name': '/dev/sda1', 'state': 'running', 'hypervisor': 'xen', 'tags': {'Students': '1', 'Workshop': 'MMABIS-AnsibleTWR-Test', 'Workshop_node2': 'MMABIS-AnsibleTWR-Test-node2', 'Linklight': 'This was provisioned through the linklight provisioner for F5 workshop', 'username': 'ec2-user', 'AWS_USERNAME': 'mmabis-iam', 'short_name': 'node2', 'Info': 'AWS_USERNAME that provisioned this-> mmabis-iam', 'Workshop_type': 'f5'}, 'groups': {'sg-06ce41f3d1575e5e3': 'MMABIS-AnsibleTWR-Test-insecure_all'}, 'virtualization_type': 'hvm', 'ebs_optimized': False, 'block_device_mapping': {'/dev/sda1': {'status': 'attached', 'volume_id': 'vol-09beab85f4b3b5ac8', 'delete_on_termination': True}}, 'tenancy': 'default'}])

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-0d0019faa49380c1c (F5 MODE)] ***
changed: [localhost] => (item={'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-184-220-211.us-west-2.compute.amazonaws.com', 'public_ip': '54.184.220.211'}, 'attachment': {'attach_time': '2020-08-20T22:38:37+00:00', 'attachment_id': 'eni-attach-033d57bbe7efda1ee', 'delete_on_termination': True, 'device_index': 0, 'instance_id': 'i-034916b42cb24c2eb', 'instance_owner_id': '250871914685', 'status': 'attached'}, 'availability_zone': 'us-west-2a', 'description': '', 'groups': [{'group_name': 'MMABIS-AnsibleTWR-Test-insecure_all', 'group_id': 'sg-06ce41f3d1575e5e3'}], 'interface_type': 'interface', 'ipv6_addresses': [], 'mac_address': '06:ea:31:f9:be:75', 'network_interface_id': 'eni-0af84f769e461819f', 'owner_id': '250871914685', 'private_dns_name': 'ip-172-16-173-49.us-west-2.compute.internal', 'private_ip_address': '172.16.173.49', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-184-220-211.us-west-2.compute.amazonaws.com', 'public_ip': '54.184.220.211'}, 'primary': True, 'private_dns_name': 'ip-172-16-173-49.us-west-2.compute.internal', 'private_ip_address': '172.16.173.49'}], 'requester_managed': False, 'source_dest_check': True, 'status': 'in-use', 'subnet_id': 'subnet-05da3e1645dd3b445', 'tag_set': {}, 'vpc_id': 'vpc-0d0019faa49380c1c', 'id': 'eni-0af84f769e461819f'})
changed: [localhost] => (item={'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-190-194-218.us-west-2.compute.amazonaws.com', 'public_ip': '54.190.194.218'}, 'attachment': {'attach_time': '2020-08-20T22:37:46+00:00', 'attachment_id': 'eni-attach-0533f7b6abe0393a8', 'delete_on_termination': True, 'device_index': 0, 'instance_id': 'i-01f63fda94f423647', 'instance_owner_id': '250871914685', 'status': 'attached'}, 'availability_zone': 'us-west-2a', 'description': '', 'groups': [{'group_name': 'MMABIS-AnsibleTWR-Test-insecure_all', 'group_id': 'sg-06ce41f3d1575e5e3'}], 'interface_type': 'interface', 'ipv6_addresses': [], 'mac_address': '06:19:db:f2:a5:95', 'network_interface_id': 'eni-0638f88a0b3a5df8d', 'owner_id': '250871914685', 'private_dns_name': 'ip-172-16-197-188.us-west-2.compute.internal', 'private_ip_address': '172.16.197.188', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-190-194-218.us-west-2.compute.amazonaws.com', 'public_ip': '54.190.194.218'}, 'primary': True, 'private_dns_name': 'ip-172-16-197-188.us-west-2.compute.internal', 'private_ip_address': '172.16.197.188'}], 'requester_managed': False, 'source_dest_check': True, 'status': 'in-use', 'subnet_id': 'subnet-05da3e1645dd3b445', 'tag_set': {}, 'vpc_id': 'vpc-0d0019faa49380c1c', 'id': 'eni-0638f88a0b3a5df8d'})
changed: [localhost] => (item={'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-218-209-243.us-west-2.compute.amazonaws.com', 'public_ip': '54.218.209.243'}, 'attachment': {'attach_time': '2020-08-20T22:38:06+00:00', 'attachment_id': 'eni-attach-0c6d25c66f2ba1444', 'delete_on_termination': True, 'device_index': 0, 'instance_id': 'i-07d73c74a782e4172', 'instance_owner_id': '250871914685', 'status': 'attached'}, 'availability_zone': 'us-west-2a', 'description': '', 'groups': [{'group_name': 'MMABIS-AnsibleTWR-Test-insecure_all', 'group_id': 'sg-06ce41f3d1575e5e3'}], 'interface_type': 'interface', 'ipv6_addresses': [], 'mac_address': '06:f7:c9:8b:e1:fd', 'network_interface_id': 'eni-0d28012a5fe47b027', 'owner_id': '250871914685', 'private_dns_name': 'ip-172-16-124-197.us-west-2.compute.internal', 'private_ip_address': '172.16.124.197', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-218-209-243.us-west-2.compute.amazonaws.com', 'public_ip': '54.218.209.243'}, 'primary': True, 'private_dns_name': 'ip-172-16-124-197.us-west-2.compute.internal', 'private_ip_address': '172.16.124.197'}], 'requester_managed': False, 'source_dest_check': True, 'status': 'in-use', 'subnet_id': 'subnet-05da3e1645dd3b445', 'tag_set': {}, 'vpc_id': 'vpc-0d0019faa49380c1c', 'id': 'eni-0d28012a5fe47b027'})
changed: [localhost] => (item={'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-187-98-104.us-west-2.compute.amazonaws.com', 'public_ip': '54.187.98.104'}, 'attachment': {'attach_time': '2020-08-20T22:36:51+00:00', 'attachment_id': 'eni-attach-079c9a3f903c0b622', 'delete_on_termination': True, 'device_index': 0, 'instance_id': 'i-0ebeb084e7d5dc25b', 'instance_owner_id': '250871914685', 'status': 'attached'}, 'availability_zone': 'us-west-2a', 'description': '', 'groups': [{'group_name': 'MMABIS-AnsibleTWR-Test-insecure_all', 'group_id': 'sg-06ce41f3d1575e5e3'}], 'interface_type': 'interface', 'ipv6_addresses': [], 'mac_address': '06:ed:29:22:31:9f', 'network_interface_id': 'eni-0604850b3bc00fb6c', 'owner_id': '250871914685', 'private_dns_name': 'ip-172-16-84-192.us-west-2.compute.internal', 'private_ip_address': '172.16.84.192', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-187-98-104.us-west-2.compute.amazonaws.com', 'public_ip': '54.187.98.104'}, 'primary': True, 'private_dns_name': 'ip-172-16-84-192.us-west-2.compute.internal', 'private_ip_address': '172.16.84.192'}], 'requester_managed': False, 'source_dest_check': True, 'status': 'in-use', 'subnet_id': 'subnet-05da3e1645dd3b445', 'tag_set': {}, 'vpc_id': 'vpc-0d0019faa49380c1c', 'id': 'eni-0604850b3bc00fb6c'})
changed: [localhost] => (item={'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-213-145-69.us-west-2.compute.amazonaws.com', 'public_ip': '54.213.145.69'}, 'attachment': {'attach_time': '2020-08-20T22:37:18+00:00', 'attachment_id': 'eni-attach-0e6072a7fd8c17ba9', 'delete_on_termination': True, 'device_index': 0, 'instance_id': 'i-045bc1314db73f0e6', 'instance_owner_id': '250871914685', 'status': 'attached'}, 'availability_zone': 'us-west-2a', 'description': '', 'groups': [{'group_name': 'MMABIS-AnsibleTWR-Test-insecure_all', 'group_id': 'sg-06ce41f3d1575e5e3'}], 'interface_type': 'interface', 'ipv6_addresses': [], 'mac_address': '06:90:ea:5b:17:e1', 'network_interface_id': 'eni-06e6870fce189f657', 'owner_id': '250871914685', 'private_dns_name': 'ip-172-16-111-238.us-west-2.compute.internal', 'private_ip_address': '172.16.111.238', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-213-145-69.us-west-2.compute.amazonaws.com', 'public_ip': '54.213.145.69'}, 'primary': True, 'private_dns_name': 'ip-172-16-111-238.us-west-2.compute.internal', 'private_ip_address': '172.16.111.238'}], 'requester_managed': False, 'source_dest_check': True, 'status': 'in-use', 'subnet_id': 'subnet-05da3e1645dd3b445', 'tag_set': {}, 'vpc_id': 'vpc-0d0019faa49380c1c', 'id': 'eni-06e6870fce189f657'})

TASK [manage_ec2_instances : create instructor_inventory, and student files] ***
included: /ansible/playbooks/roles/manage_ec2_instances/tasks/create_inventory.yml for localhost

TASK [manage_ec2_instances : grab facts for control_nodes] *********************
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-09a29484f6dd8732d', 'instance_id': 'i-0ebeb084e7d5dc25b', 'instance_type': 't2.medium', 'key_name': 'MMABIS-AnsibleTWR-Test-key', 'launch_time': '2020-08-20T22:36:51+00:00', 'monitoring': {'state': 'disabled'}, 'placement': {'availability_zone': 'us-west-2a', 'group_name': '', 'tenancy': 'default'}, 'private_dns_name': 'ip-172-16-84-192.us-west-2.compute.internal', 'private_ip_address': '172.16.84.192', 'product_codes': [], 'public_dns_name': 'ec2-54-187-98-104.us-west-2.compute.amazonaws.com', 'public_ip_address': '54.187.98.104', 'state': {'code': 16, 'name': 'running'}, 'state_transition_reason': '', 'subnet_id': 'subnet-05da3e1645dd3b445', 'vpc_id': 'vpc-0d0019faa49380c1c', 'architecture': 'x86_64', 'block_device_mappings': [{'device_name': '/dev/sda1', 'ebs': {'attach_time': '2020-08-20T22:36:51+00:00', 'delete_on_termination': True, 'status': 'attached', 'volume_id': 'vol-03a2a1e875ffd4ead'}}], 'client_token': '', 'ebs_optimized': False, 'ena_support': True, 'hypervisor': 'xen', 'network_interfaces': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-187-98-104.us-west-2.compute.amazonaws.com', 'public_ip': '54.187.98.104'}, 'attachment': {'attach_time': '2020-08-20T22:36:51+00:00', 'attachment_id': 'eni-attach-079c9a3f903c0b622', 'delete_on_termination': True, 'device_index': 0, 'status': 'attached'}, 'description': '', 'groups': [{'group_name': 'MMABIS-AnsibleTWR-Test-insecure_all', 'group_id': 'sg-06ce41f3d1575e5e3'}], 'ipv6_addresses': [], 'mac_address': '06:ed:29:22:31:9f', 'network_interface_id': 'eni-0604850b3bc00fb6c', 'owner_id': '250871914685', 'private_dns_name': 'ip-172-16-84-192.us-west-2.compute.internal', 'private_ip_address': '172.16.84.192', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-187-98-104.us-west-2.compute.amazonaws.com', 'public_ip': '54.187.98.104'}, 'primary': True, 'private_dns_name': 'ip-172-16-84-192.us-west-2.compute.internal', 'private_ip_address': '172.16.84.192'}], 'source_dest_check': False, 'status': 'in-use', 'subnet_id': 'subnet-05da3e1645dd3b445', 'vpc_id': 'vpc-0d0019faa49380c1c', 'interface_type': 'interface'}], 'root_device_name': '/dev/sda1', 'root_device_type': 'ebs', 'security_groups': [{'group_name': 'MMABIS-AnsibleTWR-Test-insecure_all', 'group_id': 'sg-06ce41f3d1575e5e3'}], 'source_dest_check': False, 'tags': {'dns': 'student1.mmabis-ansibletwr-test.rhdemo.io ', 'Workshop_ansible': 'MMABIS-AnsibleTWR-Test-ansible-1', 'Ansible_Workshops': 'This was provisioned through the ansible workshops provisioner', 'Students': '1', 'Index': '0', 'short_name': 'ansible-1', 'Info': 'AWS_USERNAME that provisioned this-> mmabis-iam', 'Workshop_type': 'f5', 'launch_time': '2020-08-20T22:36:51.000Z', 'Student': 'student1', 'Name': 'MMABIS-AnsibleTWR-Test-student1-ansible-1', 'AWS_USERNAME': 'mmabis-iam', 'username': 'ec2-user', 'Workshop': 'MMABIS-AnsibleTWR-Test'}, '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 : setup inventory] **********************************
[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: /ansible/playbooks/roles/manage_ec2_instances/tasks/inventory/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-0680de6d71c88e0e2', 'instance_id': 'i-01f63fda94f423647', 'instance_type': 't2.large', 'key_name': 'MMABIS-AnsibleTWR-Test-key', 'launch_time': '2020-08-20T22:37:46+00:00', 'monitoring': {'state': 'disabled'}, 'placement': {'availability_zone': 'us-west-2a', 'group_name': '', 'tenancy': 'default'}, 'private_dns_name': 'ip-172-16-197-188.us-west-2.compute.internal', 'private_ip_address': '172.16.197.188', 'product_codes': [{'product_code_id': '3ouya04g99e5euh4vbxtao1jz', 'product_code_type': 'marketplace'}], 'public_dns_name': 'ec2-54-190-194-218.us-west-2.compute.amazonaws.com', 'public_ip_address': '54.190.194.218', 'state': {'code': 16, 'name': 'running'}, 'state_transition_reason': '', 'subnet_id': 'subnet-05da3e1645dd3b445', 'vpc_id': 'vpc-0d0019faa49380c1c', 'architecture': 'x86_64', 'block_device_mappings': [{'device_name': '/dev/xvda', 'ebs': {'attach_time': '2020-08-20T22:37:47+00:00', 'delete_on_termination': True, 'status': 'attached', 'volume_id': 'vol-0aea0b82586818af2'}}], 'client_token': '', 'ebs_optimized': False, 'ena_support': True, 'hypervisor': 'xen', 'network_interfaces': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-190-194-218.us-west-2.compute.amazonaws.com', 'public_ip': '54.190.194.218'}, 'attachment': {'attach_time': '2020-08-20T22:37:46+00:00', 'attachment_id': 'eni-attach-0533f7b6abe0393a8', 'delete_on_termination': True, 'device_index': 0, 'status': 'attached'}, 'description': '', 'groups': [{'group_name': 'MMABIS-AnsibleTWR-Test-insecure_all', 'group_id': 'sg-06ce41f3d1575e5e3'}], 'ipv6_addresses': [], 'mac_address': '06:19:db:f2:a5:95', 'network_interface_id': 'eni-0638f88a0b3a5df8d', 'owner_id': '250871914685', 'private_dns_name': 'ip-172-16-197-188.us-west-2.compute.internal', 'private_ip_address': '172.16.197.188', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-190-194-218.us-west-2.compute.amazonaws.com', 'public_ip': '54.190.194.218'}, 'primary': True, 'private_dns_name': 'ip-172-16-197-188.us-west-2.compute.internal', 'private_ip_address': '172.16.197.188'}], 'source_dest_check': False, 'status': 'in-use', 'subnet_id': 'subnet-05da3e1645dd3b445', 'vpc_id': 'vpc-0d0019faa49380c1c', 'interface_type': 'interface'}], 'root_device_name': '/dev/xvda', 'root_device_type': 'ebs', 'security_groups': [{'group_name': 'MMABIS-AnsibleTWR-Test-insecure_all', 'group_id': 'sg-06ce41f3d1575e5e3'}], 'source_dest_check': False, 'tags': {'Index': '0', 'Linklight': 'This was provisioned through the linklight provisioner', 'launch_time': '2020-08-20T22:37:46.000Z', 'Info': 'AWS_USERNAME that provisioned this-> mmabis-iam', 'Students': '1', 'Workshop_f5': 'MMABIS-AnsibleTWR-Test-f5', 'AWS_USERNAME': 'mmabis-iam', 'Name': 'MMABIS-AnsibleTWR-Test-student1-f5', 'Student': 'student1', 'username': 'admin', 'Workshop_type': 'f5', 'Workshop': 'MMABIS-AnsibleTWR-Test', 'short_name': 'f5'}, '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 node1 node (F5 MODE)] **************
[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 node1 to groups (F5 MODE)] ********************
changed: [localhost] => (item={'ami_launch_index': 0, 'image_id': 'ami-09a29484f6dd8732d', 'instance_id': 'i-07d73c74a782e4172', 'instance_type': 't2.micro', 'key_name': 'MMABIS-AnsibleTWR-Test-key', 'launch_time': '2020-08-20T22:38:06+00:00', 'monitoring': {'state': 'disabled'}, 'placement': {'availability_zone': 'us-west-2a', 'group_name': '', 'tenancy': 'default'}, 'private_dns_name': 'ip-172-16-124-197.us-west-2.compute.internal', 'private_ip_address': '172.16.124.197', 'product_codes': [], 'public_dns_name': 'ec2-54-218-209-243.us-west-2.compute.amazonaws.com', 'public_ip_address': '54.218.209.243', 'state': {'code': 16, 'name': 'running'}, 'state_transition_reason': '', 'subnet_id': 'subnet-05da3e1645dd3b445', 'vpc_id': 'vpc-0d0019faa49380c1c', 'architecture': 'x86_64', 'block_device_mappings': [{'device_name': '/dev/sda1', 'ebs': {'attach_time': '2020-08-20T22:38:07+00:00', 'delete_on_termination': True, 'status': 'attached', 'volume_id': 'vol-010b14a97aadbb5dc'}}], 'client_token': '', 'ebs_optimized': False, 'ena_support': True, 'hypervisor': 'xen', 'network_interfaces': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-218-209-243.us-west-2.compute.amazonaws.com', 'public_ip': '54.218.209.243'}, 'attachment': {'attach_time': '2020-08-20T22:38:06+00:00', 'attachment_id': 'eni-attach-0c6d25c66f2ba1444', 'delete_on_termination': True, 'device_index': 0, 'status': 'attached'}, 'description': '', 'groups': [{'group_name': 'MMABIS-AnsibleTWR-Test-insecure_all', 'group_id': 'sg-06ce41f3d1575e5e3'}], 'ipv6_addresses': [], 'mac_address': '06:f7:c9:8b:e1:fd', 'network_interface_id': 'eni-0d28012a5fe47b027', 'owner_id': '250871914685', 'private_dns_name': 'ip-172-16-124-197.us-west-2.compute.internal', 'private_ip_address': '172.16.124.197', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-218-209-243.us-west-2.compute.amazonaws.com', 'public_ip': '54.218.209.243'}, 'primary': True, 'private_dns_name': 'ip-172-16-124-197.us-west-2.compute.internal', 'private_ip_address': '172.16.124.197'}], 'source_dest_check': False, 'status': 'in-use', 'subnet_id': 'subnet-05da3e1645dd3b445', 'vpc_id': 'vpc-0d0019faa49380c1c', 'interface_type': 'interface'}], 'root_device_name': '/dev/sda1', 'root_device_type': 'ebs', 'security_groups': [{'group_name': 'MMABIS-AnsibleTWR-Test-insecure_all', 'group_id': 'sg-06ce41f3d1575e5e3'}], 'source_dest_check': False, 'tags': {'Index': '0', 'Name': 'MMABIS-AnsibleTWR-Test-student1-node1', 'Students': '1', 'username': 'ec2-user', 'Workshop_node1': 'MMABIS-AnsibleTWR-Test-node1', 'Workshop_type': 'f5', 'short_name': 'node1', 'Workshop': 'MMABIS-AnsibleTWR-Test', 'AWS_USERNAME': 'mmabis-iam', 'Linklight': 'This was provisioned through the linklight provisioner for F5 workshop', 'Student': 'student1', 'launch_time': '2020-08-20T22:38:06.000Z', 'Info': 'AWS_USERNAME that provisioned this-> mmabis-iam'}, '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 node2 node (F5 MODE)] **************
ok: [localhost]

TASK [manage_ec2_instances : add node2 to groups (F5 MODE)] ********************
changed: [localhost] => (item={'ami_launch_index': 0, 'image_id': 'ami-09a29484f6dd8732d', 'instance_id': 'i-034916b42cb24c2eb', 'instance_type': 't2.micro', 'key_name': 'MMABIS-AnsibleTWR-Test-key', 'launch_time': '2020-08-20T22:38:37+00:00', 'monitoring': {'state': 'disabled'}, 'placement': {'availability_zone': 'us-west-2a', 'group_name': '', 'tenancy': 'default'}, 'private_dns_name': 'ip-172-16-173-49.us-west-2.compute.internal', 'private_ip_address': '172.16.173.49', 'product_codes': [], 'public_dns_name': 'ec2-54-184-220-211.us-west-2.compute.amazonaws.com', 'public_ip_address': '54.184.220.211', 'state': {'code': 16, 'name': 'running'}, 'state_transition_reason': '', 'subnet_id': 'subnet-05da3e1645dd3b445', 'vpc_id': 'vpc-0d0019faa49380c1c', 'architecture': 'x86_64', 'block_device_mappings': [{'device_name': '/dev/sda1', 'ebs': {'attach_time': '2020-08-20T22:38:38+00:00', 'delete_on_termination': True, 'status': 'attached', 'volume_id': 'vol-09beab85f4b3b5ac8'}}], 'client_token': '', 'ebs_optimized': False, 'ena_support': True, 'hypervisor': 'xen', 'network_interfaces': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-184-220-211.us-west-2.compute.amazonaws.com', 'public_ip': '54.184.220.211'}, 'attachment': {'attach_time': '2020-08-20T22:38:37+00:00', 'attachment_id': 'eni-attach-033d57bbe7efda1ee', 'delete_on_termination': True, 'device_index': 0, 'status': 'attached'}, 'description': '', 'groups': [{'group_name': 'MMABIS-AnsibleTWR-Test-insecure_all', 'group_id': 'sg-06ce41f3d1575e5e3'}], 'ipv6_addresses': [], 'mac_address': '06:ea:31:f9:be:75', 'network_interface_id': 'eni-0af84f769e461819f', 'owner_id': '250871914685', 'private_dns_name': 'ip-172-16-173-49.us-west-2.compute.internal', 'private_ip_address': '172.16.173.49', 'private_ip_addresses': [{'association': {'ip_owner_id': 'amazon', 'public_dns_name': 'ec2-54-184-220-211.us-west-2.compute.amazonaws.com', 'public_ip': '54.184.220.211'}, 'primary': True, 'private_dns_name': 'ip-172-16-173-49.us-west-2.compute.internal', 'private_ip_address': '172.16.173.49'}], 'source_dest_check': False, 'status': 'in-use', 'subnet_id': 'subnet-05da3e1645dd3b445', 'vpc_id': 'vpc-0d0019faa49380c1c', 'interface_type': 'interface'}], 'root_device_name': '/dev/sda1', 'root_device_type': 'ebs', 'security_groups': [{'group_name': 'MMABIS-AnsibleTWR-Test-insecure_all', 'group_id': 'sg-06ce41f3d1575e5e3'}], 'source_dest_check': False, 'tags': {'launch_time': '2020-08-20T22:38:37.000Z', 'Workshop': 'MMABIS-AnsibleTWR-Test', 'Workshop_node2': 'MMABIS-AnsibleTWR-Test-node2', 'Linklight': 'This was provisioned through the linklight provisioner for F5 workshop', 'Student': 'student1', 'username': 'ec2-user', 'AWS_USERNAME': 'mmabis-iam', 'short_name': 'node2', 'Workshop_type': 'f5', 'Students': '1', 'Name': 'MMABIS-AnsibleTWR-Test-student1-node2', 'Info': 'AWS_USERNAME that provisioned this-> mmabis-iam', 'Index': '0'}, '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]

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

TASK [connectivity_test : Wait 400 seconds (using wait_for_connection)] ********
ok: [MMABIS-AnsibleTWR-Test-student1-ansible-1]
ok: [attendance-host]
ok: [MMABIS-AnsibleTWR-Test-student1-node1]
ok: [MMABIS-AnsibleTWR-Test-student1-node2]

PLAY [Configure nginx on attendance host] **************************************

TASK [Gathering Facts] *********************************************************
ok: [attendance-host]

TASK [include_role : workshop_attendance_nginx] ********************************

TASK [workshop_attendance_nginx : setup repo] **********************************
changed: [attendance-host]

TASK [workshop_attendance_nginx : selinux bindings RHEL7] **********************
skipping: [attendance-host]

TASK [workshop_attendance_nginx : selinux bindings RHEL8] **********************
changed: [attendance-host]

TASK [workshop_attendance_nginx : install nginx] *******************************
changed: [attendance-host]

TASK [workshop_attendance_nginx : set httpd_unified (selinux)] *****************
changed: [attendance-host] => (item=httpd_unified)
changed: [attendance-host] => (item=httpd_can_network_connect)
changed: [attendance-host] => (item=httpd_can_network_relay)

TASK [workshop_attendance_nginx : enable at startup] ***************************
changed: [attendance-host]

TASK [workshop_attendance_nginx : setup site config dirs] **********************
changed: [attendance-host] => (item=sites-available.d)
changed: [attendance-host] => (item=sites-enabled.d)

TASK [workshop_attendance_nginx : main config] *********************************
changed: [attendance-host]

TASK [workshop_attendance_nginx : site enabled config] *************************
changed: [attendance-host]

TASK [include_role : workshop_attendance] **************************************

TASK [workshop_attendance : Teardown attendance] *******************************
skipping: [attendance-host]

TASK [workshop_attendance : GitLab post | Create DNS record] *******************
changed: [attendance-host -> localhost]

TASK [workshop_attendance : Install MySQL, PHP, Git] ***************************
changed: [attendance-host]

TASK [workshop_attendance : Enable TCP port 9000 for php-fpm] ******************
changed: [attendance-host]

TASK [workshop_attendance : Start Services] ************************************
changed: [attendance-host] => (item=mariadb)
changed: [attendance-host] => (item=php-fpm)

TASK [workshop_attendance : Set permissions on the PHP Session directory] ******
changed: [attendance-host]

TASK [workshop_attendance : Create users directory on server] ******************
ok: [attendance-host]

TASK [workshop_attendance : Copy users file to server] *************************
changed: [attendance-host]

TASK [workshop_attendance : Copy list file to server] **************************
changed: [attendance-host]

TASK [workshop_attendance : Install PyMySQL] ***********************************
changed: [attendance-host]

TASK [workshop_attendance : Create a new database with name 'workshop'] ********
changed: [attendance-host]

TASK [workshop_attendance : Copy SQL template to server] ***********************
changed: [attendance-host]

TASK [workshop_attendance : Import SQL file into workshop database] ************
changed: [attendance-host]

TASK [workshop_attendance : set information for instructor] ********************
ok: [attendance-host -> localhost]

RUNNING HANDLER [workshop_attendance_nginx : restart nginx] ********************
changed: [attendance-host]

RUNNING HANDLER [workshop_attendance : restart nginx] **************************
changed: [attendance-host]

RUNNING HANDLER [workshop_attendance : restart php-fpm] ************************
changed: [attendance-host]
[WARNING]: Could not match supplied host pattern, ignoring:
security_connection_check

PLAY [wait for all security nodes to have SSH reachability] ********************
skipping: no hosts matched

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

TASK [user_accounts : Create User Group] ***************************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]
changed: [MMABIS-AnsibleTWR-Test-student1-node1]
changed: [MMABIS-AnsibleTWR-Test-student1-node2]

TASK [user_accounts : Create User Account] *************************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]
changed: [MMABIS-AnsibleTWR-Test-student1-node1]
changed: [MMABIS-AnsibleTWR-Test-student1-node2]

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

TASK [common : hostname] *******************************************************
changed: [MMABIS-AnsibleTWR-Test-student1-node1]
changed: [MMABIS-AnsibleTWR-Test-student1-node2]
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

RUNNING HANDLER [common : restart ssh] *****************************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]
changed: [MMABIS-AnsibleTWR-Test-student1-node1]
changed: [MMABIS-AnsibleTWR-Test-student1-node2]
[WARNING]: Could not match supplied host pattern, ignoring: *ansible-2
[WARNING]: Could not match supplied host pattern, ignoring: *ansible-3
[WARNING]: Could not match supplied host pattern, ignoring: *ansible-4

PLAY [Configure cluster nodes with /etc/hosts] *********************************
skipping: no hosts matched

PLAY [configure ansible control node] ******************************************

TASK [Gathering Facts] *********************************************************
ok: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [debug] *******************************************************************
ok: [MMABIS-AnsibleTWR-Test-student1-ansible-1] =>
  tower_license:
    company_name: F5 Networks
    contact_email: M.Gadde@F5.com
    contact_name: Mani Gadde
    eula_accepted: true
    features:
      activity_streams: true
      enterprise_auth: true
      ha: true
      ldap: true
      multiple_organizations: true
      rebranding: true
      surveys: true
      system_tracking: true
      workflows: true
    hostname: 89db1c14aaad4bb7bf718cbca3f86890
    instance_count: 100
    license_date: 1614554936
    license_key: fed0d6586a5a25067e6cc037e6e3153698fac42502b3b4c9249e818b03b4f841
    license_type: basic
    subscription_name: Red Hat Ansible Tower, Self-Support (100 Managed Nodes) NFR

TASK [control_node : hostname] *************************************************
ok: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : Add repository] *******************************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : fix EPEL repo substitution] *******************************
ok: [MMABIS-AnsibleTWR-Test-student1-ansible-1] => (item=/etc/yum.repos.d/epel.repo)

TASK [control_node : Install base packages] ************************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : Install ansible.cfg and vimrc in home directory] **********
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : Install vimrc in home directory] **************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : setup /etc/hosts file per student] ************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : make sure .ssh is created] ********************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : copy over ssh config file for student] ********************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : Put ssh-key in proper spot for student] *******************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : copy over ssh config file for ansible_user] ***************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : Put ssh-key in proper spot for student] *******************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : clean out /tmp/workshops] *********************************
ok: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : Clone workshops repo] *************************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : Move relevant exercises to correct location] **************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : Create lab inventory directory] ***************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : Put student inventory in proper spot] *********************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : setup control node for workshop type] *********************
included: /ansible/playbooks/roles/control_node/tasks/f5.yml for MMABIS-AnsibleTWR-Test-student1-ansible-1

TASK [control_node : upgrade pip (F5 MODE)] ************************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : upgrade setuptools to 44 (F5 MODE)] ***********************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : install f5 workshop dependicies (F5 MODE)] ****************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : check to see if ansible tower is already up and running] ***
ok: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : install tower if knob is set] *****************************
included: /ansible/playbooks/roles/control_node/tasks/tower.yml for MMABIS-AnsibleTWR-Test-student1-ansible-1

TASK [control_node : Download Ansible Tower] ***********************************
[WARNING]: Module remote_tmp /root/.ansible/tmp did not exist and was created
with a mode of 0700, this may cause issues when running as another user. To
avoid this, create the remote_tmp dir with the correct permissions manually
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : Create directory for Ansible Tower] ***********************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : Extract Ansible Tower install] ****************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : template inventory file for Ansible Tower Install] ********
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : template inventory file for Ansible Tower Install] ********
skipping: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : run the Ansible Tower installer] **************************

changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : wait for Ansible Tower to be up] **************************
ok: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : Display /api/v2/ping results] *****************************
ok: [MMABIS-AnsibleTWR-Test-student1-ansible-1] =>
  msg:
    active_node: localhost
    ha: false
    install_uuid: fbb8725f-e8c2-44e0-add3-b293e1ad312f
    instance_groups:
    - capacity: 17
      instances:
      - localhost
      name: tower
    instances:
    - capacity: 17
      heartbeat: '2020-08-20T23:00:19.485342Z'
      node: localhost
      uuid: 06ddaf41-ec87-4b27-8ff8-1f5057cf0d03
      version: 3.7.1
    version: 3.7.1

TASK [control_node : install ansible-tower-cli and requests] *******************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : Create directory for custom venvs] ************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : specify in Tower which directory to look for custom venvs] ***
ok: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : Install virtualenv via pip] *******************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : install ansible development branch to venv] ***************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : add student user] *****************************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [control_node : Post license key] *****************************************
ok: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [include_role : code_server] **********************************************

TASK [code_server : remove dns entries for each vs code instance] **************
skipping: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [code_server : check to see if SSL cert already applied] ******************
ok: [MMABIS-AnsibleTWR-Test-student1-ansible-1 -> localhost]

TASK [code_server : setup vscode for web browser access] ***********************
included: /ansible/playbooks/roles/code_server/tasks/codeserver.yml for MMABIS-AnsibleTWR-Test-student1-ansible-1

TASK [code_server : Download and install certbot] ******************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [code_server : turn off tower] ********************************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [code_server : dns for coder] *********************************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1 -> localhost]

TASK [code_server : Download code-server 3 rpm] ********************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [code_server : install code-server 3 rpm from local rpm] ******************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [code_server : Apply our systemd service file (instead of RPM file)] ******
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [code_server : update nginx configuration to support code server] *********
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [code_server : ensure custom facts directory exists] **********************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [code_server : apply code server defaults] ********************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [code_server : copy extension files to host] ******************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1] => (item=bierner.markdown-preview-github-styles-0.1.6.vsix)
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1] => (item=hnw.vscode-auto-open-markdown-preview-0.0.4.vsix)
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1] => (item=vscoss.vscode-ansible-0.5.2.vsix)

TASK [code_server : install ansible and markdown extensions] *******************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1] => (item=bierner.markdown-preview-github-styles-0.1.6.vsix)
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1] => (item=hnw.vscode-auto-open-markdown-preview-0.0.4.vsix)
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1] => (item=vscoss.vscode-ansible-0.5.2.vsix)
[WARNING]: Module remote_tmp /home/student1/.ansible/tmp did not exist and was
created with a mode of 0700, this may cause issues when running as another
user. To avoid this, create the remote_tmp dir with the correct permissions
manually

TASK [code_server : daemon-reload, enable and start code-server] ***************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [code_server : issue cert] ************************************************
FAILED - RETRYING: issue cert (5 retries left).
FAILED - RETRYING: issue cert (4 retries left).
FAILED - RETRYING: issue cert (3 retries left).
FAILED - RETRYING: issue cert (2 retries left).
FAILED - RETRYING: issue cert (1 retries left).
fatal: [MMABIS-AnsibleTWR-Test-student1-ansible-1]: FAILED! => changed=true
  attempts: 5
  cmd: /usr/local/bin/certbot-auto certonly --no-bootstrap --standalone -d student1-code.mmabis-ansibletwr-test.rhdemo.io --email ansible-network@redhat.com --noninteractive --agree-tos
  delta: '0:00:04.411306'
  end: '2020-08-20 23:05:17.719380'
  msg: non-zero return code
  rc: 1
  start: '2020-08-20 23:05:13.308074'
  stderr: |-
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Plugins selected: Authenticator standalone, Installer None
    Obtaining a new certificate
    An unexpected error occurred:
    There were too many requests of a given type :: Error creating new order :: too many failed authorizations recently: see https://letsencrypt.org/docs/rate-limits/
    Please see the logfiles in /var/log/letsencrypt for more details.
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>
...ignoring

TASK [code_server : turn on tower] *********************************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

PLAY [add dns entires for all student control nodes] ***************************

TASK [include_role : aws_dns] **************************************************

TASK [aws_dns : REMOVE DNS ENTRIES FOR EACH TOWER NODE] ************************
skipping: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [aws_dns : CHECK TO SEE IF SSL CERT ALREADY APPLIED] **********************
ok: [MMABIS-AnsibleTWR-Test-student1-ansible-1]

TASK [aws_dns : create DNS entries for each Ansible Tower node] ****************
included: /ansible/playbooks/roles/aws_dns/tasks/create.yml for MMABIS-AnsibleTWR-Test-student1-ansible-1

TASK [aws_dns : dns for student webpage] ***************************************
changed: [MMABIS-AnsibleTWR-Test-student1-ansible-1 -> localhost]

TASK [aws_dns : certbot for Ansible Tower] *************************************
included: /ansible/playbooks/roles/aws_dns/tasks/tower.yml for MMABIS-AnsibleTWR-Test-student1-ansible-1

TASK [aws_dns : change ansible tower base URL] *********************************
FAILED - RETRYING: change ansible tower base URL (5 retries left).
FAILED - RETRYING: change ansible tower base URL (4 retries left).
FAILED - RETRYING: change ansible tower base URL (3 retries left).
FAILED - RETRYING: change ansible tower base URL (2 retries left).
FAILED - RETRYING: change ansible tower base URL (1 retries left).
fatal: [MMABIS-AnsibleTWR-Test-student1-ansible-1]: FAILED! => changed=false
  attempts: 5
  msg: 'Failed to get token: <urlopen error [Errno 111] Connection refused>'

PLAY RECAP *********************************************************************
MMABIS-AnsibleTWR-Test-student1-ansible-1 : ok=65   changed=47   unreachable=0    failed=1    skipped=3    rescued=0    ignored=1
MMABIS-AnsibleTWR-Test-student1-node1 : ok=6    changed=5    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
MMABIS-AnsibleTWR-Test-student1-node2 : ok=6    changed=5    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
attendance-host            : ok=26   changed=22   unreachable=0    failed=0    skipped=2    rescued=0    ignored=0
localhost                  : ok=76   changed=33   unreachable=0    failed=0    skipped=12   rescued=0    ignored=0
liquidat commented 4 years ago

@VDI-Tech-Guy Sounds to me like an issue with letsencrypt. Any idea why letsencrypt failed? What does /var/log/letsencrypt/letsencrypt.log say?

VDI-Tech-Guy commented 4 years ago

@liquidat - Checked it out further this was due to not having a route53 and it defaulting to redhat.io so i added my own route53 and that solved the cert and provisioning issue with tower.

added workshop_dns_zone to the extravars.

liquidat commented 4 years ago

Glad you figured that out! Thanks for letting us know!