Fixing bind9 config

cubox-m still doesn't respond to outside requests
This commit is contained in:
2022-08-25 08:03:45 -04:00
parent 47dfd8aa22
commit 20d18ec966
26 changed files with 350 additions and 350 deletions

View File

@@ -1,16 +1,29 @@
---
# main tasks for installing glusterfs
- name: add the glusterfs repo
ansible.builtin.lineinfile:
path: /etc/apt/sources.list.d/gluster.list
state: present
create: yes
owner: root
group: root
mode: 644
line: deb [arch=arm64] https://download.gluster.org/pub/gluster/glusterfs/6/6.9/Debian/bullseye/arm64/apt bullseye main
- name: Add an Apt signing key, uses whichever key is at the URL
ansible.builtin.apt_key:
url: https://download.gluster.org/pub/gluster/glusterfs/6/rsa.pub
state: present
# install packages
- name: Ensure glusterfs server is installed.
apt:
ansible.builtin.apt:
name: "{{ item }}"
update_cache: yes
cache_valid_time: 3600
state: latest
state: present
with_items:
- glusterfs-server
- glusterfs-server=6.9
- xfsprogs
- xfsdump
@@ -26,4 +39,3 @@
ansible.builtin.service:
name: glusterfs-server
state: started
when: ansible_architecture == 'armv7l'

View File

@@ -0,0 +1,64 @@
---
# main tasks for installing glusterfs
- name: add the glusterfs repo
ansible.builtin.lineinfile:
path: /etc/apt/sources.list.d/gluster.list
state: present
create: yes
owner: root
group: root
mode: 644
regexp: deb-src
line: deb-src https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/bullseye/amd64/apt bullseye main
- name: make a build dir
ansible.builtin.file:
path: src/debian
state: directory
mode: '0755'
- name: Add an Apt signing key, uses whichever key is at the URL
ansible.builtin.apt_key:
url: https://download.gluster.org/pub/gluster/glusterfs/6/rsa.pub
state: present
- name: Ensure build tools are installed.
ansible.builtin.apt:
name: "{{ item }}"
state: present
with_items:
- dpkg-dev
- name: Ensure build deps are installed.
ansible.builtin.apt:
name: "{{ item }}"
state: build-dep
with_items:
- glusterfs-server
# install packages
#- name: Ensure glusterfs server is installed.
# ansible.builtin.apt:
# name: "{{ item }}"
# update_cache: yes
# cache_valid_time: 3600
# state: present
# with_items:
# - glusterfs-server=6.9
# - xfsprogs
# - xfsdump
#
#- name: Start service gluster, if not started
# block:
## - name: start on home
## ansible.builtin.service:
## name: glusterd
## state: started
## when: "ansible_lsb.major_release >= '20'"
#
# - name: start on cubox-i
# ansible.builtin.service:
# name: glusterfs-server
# state: started

View File

@@ -1,14 +1,13 @@
---
- name: install on ubuntu
ansible.builtin.include_role:
name: geerlingguy.glusterfs
when: ansible_architecture != 'armv7l'
#- name: install on ubuntu
# ansible.builtin.include_role:
# name: geerlingguy.glusterfs
# when: ansible_architecture != 'armv7l'
- include_tasks: install.yaml
when: ansible_architecture == 'armv7l'
- include_tasks: install_src.yaml
- include_tasks: manage_volumes.yml
#- include_tasks: manage_volumes.yml
## doesn't work
#- name: "check the underlying config"