a5hleyrich / wordpress-ansible Goto Github PK
View Code? Open in Web Editor NEWAnsible playbook for provisioning WordPress servers
Ansible playbook for provisioning WordPress servers
Automate the site creation process, including:
wp core download
wp core config
wp core install
How would you fix this error with cache, mate?)
I've already added some vars to hosts
file and main.yml
.
# Example inventory that makes an alias for localhost that uses Python3
localhost-py3 ansible_host=localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3
# Example of setting a group of hosts to use Python3
[py3-hosts]
ubuntu18
[py3-hosts:vars]
ansible_python_interpreter=/usr/bin/python3
- name: Run apt upgrade
apt:
upgrade: "yes"
update_cache: yes
cache_valid_time: 432000
async: 7200
poll: 20
notify: reboot
ansible-playbook provision.yml -l webservers -i hosts -u organic -vvv
TASK [mariadb : Install MariaDB repository] ************************************
fatal: [164.90.176.188]: FAILED! => {"changed": false, "msg": "apt cache update failed"}
<164.90.176.188> (0, b'', b'')
The full traceback is:
File "/tmp/ansible_apt_repository_payload_60scw5rp/ansible_apt_repository_payload.zip/ansible/modules/packaging/os/apt_repository.py", line 548, in main
File "/usr/lib/python3/dist-packages/apt/cache.py", line 586, in update
raise FetchFailedException(e)
fatal: [164.90.176.188]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"codename": null,
"filename": null,
"install_python_apt": true,
"mode": null,
"repo": "deb http://ftp.igh.cnrs.fr/pub/mariadb/repo/10.3/ubuntu trusty main",
"state": "present",
"update_cache": true,
"validate_certs": true
}
},
"msg": "apt cache update failed"
}
PLAY RECAP *********************************************************************
164.90.176.188 : ok=25 changed=1 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0
Perform the steps outlined in this article:
https://mariadb.com/kb/en/mariadb/mysql_secure_installation/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.