Skip to content

Commit 837a0ed

Browse files
committed
added ble.sh to extras, lots of linting updates, changelog added
1 parent 2727d1f commit 837a0ed

File tree

47 files changed

+240
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+240
-152
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
vars/**
33
inventory
44
*.tar.gz
5+
.ansible
56

67
## Generic Python .gitignore
78
# Byte-compiled / optimized / DLL files

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Changelog
2+
3+
## [1.0.4] - 2025-04-02
4+
5+
### Added
6+
- Added ble.sh installation to container extras role
7+
- Installs ble.sh from source
8+
- Configures ble.sh in user's .bashrc
9+
- Automatically cleans up after installation
10+
11+
### Changed
12+
- Improved code quality and linting compliance
13+
- Added proper changed_when conditions to file operations
14+
- Replaced shell commands with appropriate Ansible modules
15+
- Added task names for better readability
16+
- Updated Ansible version requirement to >=2.18.0
17+
18+
## [1.0.3] - 2025-02-24
19+
20+
### Added
21+
- New Docker Compose manifest for Pi-hole v6
22+
- Updated for Pi-hole's new architecture and API
23+
- Added pihole-unbound flag for lightweight stack deployment
24+
- Preconfigured Unbound for upstream recursion
25+
- Future plans for DNS over HTTPS (DoH) support
26+
27+
### Changed
28+
- Major repository structural improvements
29+
- Cleaned up unnecessary files
30+
- Improved organization
31+
- Added automated workflow for Ansible Galaxy releases

examples/bootstrap.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- name: Bootstrap dependencies
44
hosts: localhost
55
connection: local
6-
gather_facts: no
6+
gather_facts: false
77
tasks:
88
- name: Install required Python libraries
99
ansible.builtin.pip:
@@ -14,9 +14,9 @@
1414
state: present
1515

1616
- name: Upgrade community.general collection
17-
command: ansible-galaxy collection install community.general --upgrade
17+
ansible.builtin.command: ansible-galaxy collection install community.general --upgrade
1818
changed_when: false
1919

2020
- name: Install required Ansible Galaxy role (geerlingguy.docker)
21-
command: ansible-galaxy role install geerlingguy.docker
22-
changed_when: false
21+
ansible.builtin.command: ansible-galaxy role install geerlingguy.docker
22+
changed_when: false

examples/lxcs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ lxcs:
2626
port: 8582
2727
gitea:
2828
port_http: 3000
29-
port_ssh: 222
29+
port_ssh: 222

examples/manage-lxcs.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
- name: Provision Proxmox LXCs
33
hosts: localhost
44
connection: local
5-
gather_facts: no
5+
gather_facts: false
66
# If you need to explicitly define your vault and LXC settings paths
77
# vars_files:
88
# - /path/to/vars/proxmox-vault.yml
99
# - /path/to/vars/lxcs.yml
1010
tasks:
1111
- name: Run proxmox_provision role for each container
12-
include_role:
12+
ansible.builtin.include_role:
1313
name: sbarbett.proxmox_management.proxmox_provision
1414
vars:
1515
container: "{{ item }}"
@@ -18,13 +18,13 @@
1818
- name: Populate dynamic inventory with container hosts
1919
hosts: localhost
2020
connection: local
21-
gather_facts: no
21+
gather_facts: false
2222
# vars_files:
2323
# - /path/to/vars/proxmox-vault.yml
2424
# - /path/to/vars/lxcs.yml
2525
tasks:
2626
- name: Run container_setup inventory tasks for each container
27-
include_role:
27+
ansible.builtin.include_role:
2828
name: sbarbett.proxmox_management.container_inventory
2929
tasks_from: inventory.yml
3030
vars:
@@ -33,21 +33,21 @@
3333

3434
- name: Run initial container setup
3535
hosts: proxmox_containers
36-
gather_facts: no
37-
become: yes
38-
roles:
36+
gather_facts: false
37+
become: true
38+
roles:
3939
- role: sbarbett.proxmox_management.container_setup
4040

4141
- name: Run extras configuration on containers
4242
hosts: proxmox_containers_extras
43-
gather_facts: yes
44-
become: yes
45-
roles:
43+
gather_facts: false
44+
become: true
45+
roles:
4646
- role: sbarbett.proxmox_management.container_extras
4747

4848
- name: Run docker setup on provisioned containers
4949
hosts: proxmox_containers_docker
50-
gather_facts: yes
50+
gather_facts: false
5151
roles:
5252
- role: geerlingguy.docker
5353
vars:
@@ -67,7 +67,7 @@
6767

6868
- name: Run docker container setup on provisioned containers
6969
hosts: proxmox_containers_docker
70-
gather_facts: yes
71-
become: yes
72-
roles:
73-
- role: sbarbett.proxmox_management.docker_compose
70+
gather_facts: false
71+
become: true
72+
roles:
73+
- role: sbarbett.proxmox_management.docker_compose

galaxy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
namespace: sbarbett
22
name: proxmox_management
3-
version: "1.0.3"
3+
version: "1.0.4"
44
readme: README.md
55
authors:
66
- Shane Barbetta
77
description: >
88
A collection for managing Proxmox LXC containers (provisioning, configuration, and Docker deployment).
9-
license: MIT
9+
license: [MIT]
1010
tags:
1111
- proxmox
1212
- lxc
1313
- docker
14+
- infrastructure
1415
dependencies:
1516
community.general: ">=6.0.0"
16-
repository: https://github.com/sbarbett/proxmox-ansible
17+
repository: https://github.com/sbarbett/proxmox-ansible

meta/runtime.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
requires_ansible: ">=2.9"
1+
requires_ansible: ">=2.18.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#SPDX-License-Identifier: MIT-0
1+
# SPDX-License-Identifier: MIT-0
22
---
33
# defaults file for roles/container_extras
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
#SPDX-License-Identifier: MIT-0
1+
# SPDX-License-Identifier: MIT-0
22
---
33
# handlers file for roles/container_extras
4+
5+
- name: Update apt cache
6+
ansible.builtin.apt:
7+
update_cache: true
8+
become: true

roles/container_extras/meta/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ galaxy_info:
33
description: >
44
An Ansible role to install extra software on Proxmox LXC containers.
55
license: MIT
6-
min_ansible_version: 2.9
6+
min_ansible_version: "2.9"
77
galaxy_tags:
88
- proxmox
99
- lxc
1010
- container
1111
- provisioning
1212

13-
dependencies: []
13+
dependencies: []

0 commit comments

Comments
 (0)