84 lines
2 KiB
YAML
84 lines
2 KiB
YAML
|
|
- name: dokos | dependencies | install node 16 source
|
|
tags: packages
|
|
shell: curl -sL https://deb.nodesource.com/setup_16.x | bash -
|
|
args:
|
|
creates: /etc/apt/sources.list.d/nodesource.list
|
|
|
|
- name: dokos | dependencies | install yarn source key
|
|
tags: packages
|
|
shell: >
|
|
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg |
|
|
gpg --dearmor |
|
|
tee /usr/share/keyrings/yarnkey.gpg > /dev/null
|
|
args:
|
|
creates: /usr/share/keyrings/yarnkey.gpg
|
|
|
|
- name: dokos | dependencies | install yarn apt source
|
|
tags: packages
|
|
shell: >
|
|
echo 'deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main' |
|
|
sudo tee /etc/apt/sources.list.d/yarn.list
|
|
args:
|
|
creates: /etc/apt/sources.list.d/yarn.list
|
|
|
|
- name: dokos | dependencies | apt packages
|
|
tags: packages
|
|
package:
|
|
state: latest
|
|
update_cache: yes
|
|
name:
|
|
- git
|
|
- software-properties-common
|
|
- build-essential
|
|
- python3-dev
|
|
- python3-pip
|
|
- python3-venv
|
|
- python3-setuptools
|
|
- redis-server
|
|
- nginx
|
|
- mariadb-server-10.5
|
|
- xvfb
|
|
- libfontconfig
|
|
- wkhtmltopdf
|
|
- nodejs
|
|
- yarn
|
|
|
|
- name: dokos | dependencies | mariadb utf8 config
|
|
tags: mysql-setup
|
|
copy:
|
|
src: mariadb-90-want-utf8.cnf
|
|
dest: /etc/mysql/mariadb.conf.d/90-want-utf8.cnf
|
|
notify: mariadb restart
|
|
|
|
- name: dokos | dependencies | mariadb Set root Password
|
|
tags: mysql-setup
|
|
community.mysql.mysql_user:
|
|
check_implicit_admin: yes
|
|
host: localhost
|
|
name: root
|
|
password: "{{ mysql_root_password }}"
|
|
state: present
|
|
|
|
- name: dokos | dependencies | Add .my.cnf for root
|
|
tags: mysql-setup
|
|
template:
|
|
src: my.cnf.j2
|
|
dest: /root/.my.cnf
|
|
owner: root
|
|
group: root
|
|
mode: 0600
|
|
|
|
- name: Removes all anonymous user accounts
|
|
community.mysql.mysql_user:
|
|
name: ''
|
|
host_all: yes
|
|
state: absent
|
|
|
|
# - name: dokos | dependencies | pip install frappe-bench
|
|
# pip:
|
|
# name: frappe-bench
|
|
|
|
- name: dokos | dependencies | pip install dokos-cli
|
|
pip:
|
|
name: dokos-cli
|