From 4d4c3182dfa8f5e0cbb699bf2349fd18c4c628f2 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Wed, 28 Oct 2020 12:03:06 -0300 Subject: [PATCH] Poetry packaging --- index.html => files/index.html | 0 zepto.min.js => files/zepto.min.js | 0 playbook.yml | 13 ++++++++++++- pyproject.toml | 17 +++++++++++++++++ 4 files changed, 29 insertions(+), 1 deletion(-) rename index.html => files/index.html (100%) rename zepto.min.js => files/zepto.min.js (100%) create mode 100644 pyproject.toml diff --git a/index.html b/files/index.html similarity index 100% rename from index.html rename to files/index.html diff --git a/zepto.min.js b/files/zepto.min.js similarity index 100% rename from zepto.min.js rename to files/zepto.min.js diff --git a/playbook.yml b/playbook.yml index 9be0232..7509a7d 100644 --- a/playbook.yml +++ b/playbook.yml @@ -27,7 +27,16 @@ enablerepo: remi # Postgres - # + - name: Install PostgreSQL + become: yes + yum: + name: postgresql-server + state: latest + + - name: NextCloud database + postgresql_db: + name: nextcloud + # PHP + PHP-FPM - name: Install PHP become: yes @@ -45,6 +54,8 @@ - php74-php-pecl-redis5 - php74-php-fpm state: latest + # Note to self: php-fpm is now in /opt/remi/php74/root/usr/sbin/php-fpm + # NextCloud itself # Domain diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..832cba6 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,17 @@ +[tool.poetry] +name = "juliobiason.me" +version = "0.1.0" +description = "Env for holding all the necessary packages for Ansible'ing my server" +authors = ["Julio Biason "] +license = "AGPL-3" + +[tool.poetry.dependencies] +python = "^3.9" +ansible = "^2.10.1" +psycopg2 = "^2.8.6" + +[tool.poetry.dev-dependencies] + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api"