diff --git a/project/{{ cookiecutter.__folder_name }}/devops/README.md b/project/{{ cookiecutter.__folder_name }}/devops/README.md index 39c2053..0a8b563 100644 --- a/project/{{ cookiecutter.__folder_name }}/devops/README.md +++ b/project/{{ cookiecutter.__folder_name }}/devops/README.md @@ -51,6 +51,12 @@ STACK_NAME={{ cookiecutter.__devops_stack_name }} Note: The `.env` file is included in `.gitignore`, ensuring environment-specific configurations aren't pushed to the repository. + +### Server installation + +You need to Ubuntu or Debian in {{ cookiecutter.hostname }}, enable SSH and install python3 there. + + ### Ansible Installation Execute the following to create a Python 3 virtual environment and install Ansible along with its dependencies: diff --git a/project/{{ cookiecutter.__folder_name }}/devops/tasks/base/task_docker.yml b/project/{{ cookiecutter.__folder_name }}/devops/tasks/base/task_docker.yml index 2462c25..ee77022 100644 --- a/project/{{ cookiecutter.__folder_name }}/devops/tasks/base/task_docker.yml +++ b/project/{{ cookiecutter.__folder_name }}/devops/tasks/base/task_docker.yml @@ -42,18 +42,18 @@ block: - name: "Docker: Add GnuPG key" ansible.builtin.apt_key: - url: https://download.docker.com/linux/ubuntu/gpg + url: https://download.docker.com/linux/{{ ansible_lsb.id | lower }}/gpg state: present - name: "Docker: Add Repository (amd64)" ansible.builtin.apt_repository: - repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable" + repo: "deb [arch=amd64] https://download.docker.com/linux/{{ ansible_lsb.id | lower }} {{ ansible_lsb.codename }} stable" state: present filename: 'docker' - name: "Docker: Add Repository (arm64)" ansible.builtin.apt_repository: - repo: "deb [arch=arm64] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable" + repo: "deb [arch=arm64] https://download.docker.com/linux/{{ ansible_lsb.id | lower }} {{ ansible_lsb.codename }} stable" state: present filename: 'docker' tags: