mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
✨ Add Debian 12 and CI
This commit is contained in:
committed by
Emilien M
parent
c552dd3642
commit
c8344201a8
@@ -260,4 +260,3 @@
|
||||
args:
|
||||
executable: /bin/bash
|
||||
changed_when: false
|
||||
when: nginx_auto_config_httpv2 and 'http_v2' in nginx_modules
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
ansible.builtin.apt_repository:
|
||||
repo: 'deb http://httpredir.debian.org/debian {{ ansible_distribution_release }}-backports main'
|
||||
state: present
|
||||
when: nginx_backports
|
||||
when: nginx_backports is defined and nginx_backports
|
||||
|
||||
- name: APT | Install needed packages
|
||||
ansible.builtin.apt:
|
||||
@@ -65,9 +65,9 @@
|
||||
name: foo
|
||||
system: true
|
||||
|
||||
- name: INCLUDE_ROLE | hanxhx.php
|
||||
- name: INCLUDE_ROLE | hanxhx.php # TODO: repair vagrant
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ playbook_dir }}/hanxhx.php"
|
||||
name: "hanxhx.php"
|
||||
vars:
|
||||
php_version: "{{ cur_php_version.stdout }}"
|
||||
php_autoremove_default_pool: false
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
---
|
||||
|
||||
- name: SHELL | Start ngrok
|
||||
ansible.builtin.shell: daemonize -l /tmp/ngrok.lock {{ ngrok_path }} http 80 --scheme http
|
||||
- name: COMMAND | Start ngrok
|
||||
ansible.builtin.command: daemonize -l /tmp/ngrok.lock {{ ngrok_path }} http 80 --scheme http
|
||||
failed_when: false
|
||||
changed_when: ngrok.stderr.find("Can't lock the lock file") == -1
|
||||
register: ngrok
|
||||
|
||||
- name: WAIT_FOR | ngrok started
|
||||
- name: WAIT_FOR | ngrok started # noqa: no-handler
|
||||
ansible.builtin.wait_for:
|
||||
delay: 2
|
||||
port: 4040
|
||||
@@ -22,11 +22,16 @@
|
||||
- name: LINEINFILE | Tune vimrc
|
||||
ansible.builtin.lineinfile:
|
||||
line: "set mouse="
|
||||
dest: "{{ item }}/.vimrc"
|
||||
dest: "{{ item.path }}/.vimrc"
|
||||
create: true
|
||||
owner: "{{ item.owner }}"
|
||||
group: "{{ item.owner }}"
|
||||
mode: 0644
|
||||
loop:
|
||||
- /root
|
||||
- /home/vagrant
|
||||
- path: /root
|
||||
owner: root
|
||||
- path: /home/vagrant
|
||||
owner: vagrant
|
||||
|
||||
- name: FILE | Create an internal SSL dir
|
||||
ansible.builtin.file:
|
||||
@@ -36,21 +41,16 @@
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: COPY | Deploy test certificate
|
||||
- name: COPY | Deploy test cert/key
|
||||
ansible.builtin.copy:
|
||||
src: "file/test.crt"
|
||||
dest: "{{ int_ansible_ssl_dir }}/test.crt"
|
||||
mode: 0640
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: COPY | Deploy test key
|
||||
ansible.builtin.copy:
|
||||
src: "file/test.key"
|
||||
dest: "{{ int_ansible_ssl_dir }}/test.key"
|
||||
src: "file/{{ item }}"
|
||||
dest: "{{ int_ansible_ssl_dir }}/{{ item }}"
|
||||
mode: 0640
|
||||
owner: root
|
||||
group: root
|
||||
loop:
|
||||
- 'test.key'
|
||||
- 'test.crt'
|
||||
|
||||
- name: COPY | Add all hosts in /etc/hosts
|
||||
ansible.builtin.copy:
|
||||
|
||||
Reference in New Issue
Block a user