Code Monkey home page Code Monkey logo

wordpress-ansible's Issues

Playbook for creating sites

Automate the site creation process, including:

  • Virtual host setup
  • MySQL database and user creation
  • Default directories
  • wp core download
  • wp core config
  • wp core install

FAILED! => {"changed": false, "msg": "apt cache update failed"}

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   

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.