Sorry but all wrong now feel total frustrating now.
I try to make a clean install in my droplet with the same configuration I change nothing.
1- make vagrant destroy and up in my local.
2- run ansible-playbook server.yml -e env=dev
First Error try to login with admin so I run ansible-playbook -i hosts/dev server.yml
and then comes this error
TASK [mariadb : Set root user password] ****************************************
failed: [46.101.174.179] => (item=46.101.174.179) => {"failed": true, "item": "46.101.174.179", "msg": "unable to connect to database, check login_user and login_password are correct or /root/.my.cnf has the credentials. Exception message: (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\")"}
failed: [46.101.174.179] => (item=127.0.0.1) => {"failed": true, "item": "127.0.0.1", "msg": "unable to connect to database, check login_user and login_password are correct or /root/.my.cnf has the credentials. Exception message: (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\")"}
failed: [46.101.174.179] => (item=::1) => {"failed": true, "item": "::1", "msg": "unable to connect to database, check login_user and login_password are correct or /root/.my.cnf has the credentials. Exception message: (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\")"}
failed: [46.101.174.179] => (item=localhost) => {"failed": true, "item": "localhost", "msg": "unable to connect to database, check login_user and login_password are correct or /root/.my.cnf has the credentials. Exception message: (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\")"}
PLAY RECAP *********************************************************************
46.101.174.179 : ok=36 changed=1 unreachable=0 failed=1
I don’t know why what I’m doing wrong I almost have it.
How can do all the installation in the server from 0
here is my dev/wordpress_sites.yml
# Documentation: https://roots.io/trellis/docs/remote-server-setup/
wordpress_sites:
zitronenzauber.de:
site_hosts:
- dev.zitronenzauber.de
local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root)
repo: git@github.com:MenschDankeGmbH/md-zitronenzauber-trellis.git
branch: master
subtree_path: site # relative path to your Bedrock/WP directory in your repo (above) if it is not the root (like the roots-example-project structure)
multisite:
enabled: false
subdomains: false
ssl:
enabled: false
cache:
enabled: false
duration: 30s
env:
disable_wp_cron: true
wp_home: http://dev.zitronenzauber.de
wp_siteurl: http://dev.zitronenzauber.de/wp
wp_env: dev
db_name: dev_zitronenzauber
db_user: root
db_password: root
# Generate your keys here: https://api.wordpress.org/secret-key/1.1/salt/
# These CANNOT contain the characters "{%" in succession
auth_key: 'twq|YKjS2r8x%okAj|=.C)oazsIy-v4P+2.Hga(XCh6O,-BR,U<G^NDOy f-wd{c'
secure_auth_key: ':sme:FQ@>H@G|;~sF4[I|6aLCXDZh|pgy3>g<,f7p}RYjCGvK08M2x++(SlfW`S0'
logged_in_key: 'MhftN;(Y8YGa_&~KdU-/,Xa)+X+e,?FiSED5%+,M+h|3Ty`5USCuu%dqG, p+QK_'
nonce_key: '_v(z5z&]B MQ[3F!md_BeWMmSzU>+Q*:yhHYD`oh-A&d)68yVce^`ON~CUBQa~^='
auth_salt: '^8/fJb=?dK+w+ ^ruk!l40dj|VC*+P|/GmC+F+1mV7Ca-c;.%(x]wt+F>xt/oM/U'
secure_auth_salt: '!,fVVxr/GQ2Ir(PpU]~ze_HS&k(:]<I%)P#^],{<}}sMY5qOX+8tH_-h+RPL(L]|'
logged_in_salt: 'G[vOHI$|Uj$>**z!N2^}}&[eVtOc{&sD4.>OgEK;E6y]r+!$%sz_(af5gCBQ/-mJ'
nonce_salt: 'T<Bg<]bN)jd~4v4y`=dIR;B|]qJ/Ovn$uT}*6MVf{Hvou5a-4z4@5ky!QEvGyt,d'
all/users.yml
# Documentation: https://roots.io/trellis/docs/ssh-keys/
admin_user: admin
users:
- name: "{{ web_user }}"
groups:
- "{{ web_group }}"
keys:
- "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
# - https://github.com/username.keys
- name: "{{ admin_user }}"
groups:
- sudo
keys:
- "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
# - https://github.com/username.keys
web_user: web
web_group: www-data
web_sudoers:
- "/usr/sbin/service hhvm *"
- "/usr/sbin/service php5-fpm *"
hosts/dev
[web]
46.101.174.179
[dev:children]
web
I also don’t know how to install ansible 1.9.4 maybe becouse of that I have some many issues or better I’m to stupid for this, don’t know