the code is "- name: Download MySQL repository package ansible.builtin.geturl: url:…
Jump to turn (13)
- 1the code is "- name: Download MySQL repository package ansible.builtin.geturl: u
- 2TASK [base : Install MySQL repository] fatal: [108.136.184.240]: FAILED! => {"ch
- 3please update it to use sudo
- 4as I am using role, please add become: yes to each task
- 5File "/opt/demoapp/app.py", line 4, in from flaskcors import CORS ModuleNotFound
- 6mysql --socket=/var/lib/mysql/mysql.sock -u root -pxxxxxx -e 'SELECT 1;' [1] 572
- 7the code is "echo " $INSTANCEID " > /var/www/html/index.html", please generate a
- 8please change it to open a new tab
- 9on aws ec2 instance to get public ip
- 10c2-user@ip-10-0-1-233 ~]$ curl http://169.254.169.254/latest/meta-data/public-ip
- 11https://108.136.184.240/ is working. how to config httpd.conf to enable a call h
- 12my page is " instance-id: i-0f38cf70fa56d0ab2 Get Data ", but after clicking Get
- 13is my index.html code right?
- User
the code is "- name: Download MySQL repository package ansible.builtin.get_url: url: https://repo.mysql.com/mysql80-community-release-el9-1.noarch.rpm dest: /tmp/mysql80-community-release-el9-1.noarch.rpm timeout: 60
- name: Import MySQL repository GPG key ansible.builtin.shell: rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 register: import_key_result
- name: Check if GPG key import was successful
ansible.builtin.debug:
msg: "{{ import_key_result.stdout }}"
when: import_key_result is defined
- name: Install MySQL repository ansible.builtin.dnf: name: /tmp/mysql80-community-release-el9-1.noarch.rpm state: present " the error is "TASK [base : Install MySQL repository] *************************************************************************************** fatal: [108.136.184.240]: FAILED! => {"changed": false, "msg": "Failed to validate GPG signature for mysql80-community-release-el9-1.noarch: Public key for mysql80-community-release-el9-1.noarch.rpm is not installed"} "