chore 📦: Update setupacdc.yml for new pct command usage #1

Open
Jose wants to merge 0 commits from dev into main
Owner

Updated the pct command to create a new LXC container, replacing the previous manual process. This change simplifies the setup and reduces potential errors.

Updated the `pct` command to create a new LXC container, replacing the previous manual process. This change simplifies the setup and reduces potential errors.
Jose added 11 commits 2025-11-02 08:49:05 +01:00
Updated the pct create command to use the new ansible.builtin.shell module, allowing for more flexibility and consistency in container creation.
Updated the setupacdc.yml file to include a new LXC container configuration, including host and network settings. This change allows for more flexibility in provisioning containers on Proxmox.
Updated the setupacdc.yml file to remove the task that was no longer needed, improving the overall efficiency of the setup process.
Fixed a typo in the rootfs size option, ensuring correct configuration for container setup.
Updated the LXC container setup to include additional configuration options such as swap size and description, while maintaining compatibility with existing configurations.
Updated the path of the container template to use a forward slash instead of a backslash, following the standard Linux directory separator convention.
Updated the setupacdc.yml file to conform to standard formatting, removing unnecessary quotes around the container_description variable. This change improves readability and consistency in the configuration file.
Updated the setupacdc.yml file to include additional configuration options for LXC containers, including password and network settings.
Updated the container tags to exclude 'test' and added a comment explaining the change, allowing for future flexibility in managing container tags.
Updated the `container_tags` variable to use comma join for better readability and consistency.
Updated the `pct` command to create a new LXC container, replacing the previous manual process. This change simplifies the setup and reduces potential errors.
Jose added 1 commit 2025-11-02 09:06:49 +01:00
Updated the pct command to include hostname and id for more accurate container creation. This change ensures consistency in container naming across different environments.
Jose added 1 commit 2025-11-02 09:20:44 +01:00
Updated the setupacdc.yml configuration to enable container provisioning for the addc_hostname. This change allows for more flexible and dynamic deployment of containers within the LXC environment.
Jose added 1 commit 2025-11-02 09:22:15 +01:00
Updated the `hosts` variable to use double quotes for better readability and consistency with other Ansible variables.
Jose added 1 commit 2025-11-02 09:31:30 +01:00
Corrected the typo in the `addc_hostname` variable to ensure correct host selection for LXC provisioning.
Jose added 1 commit 2025-11-02 09:33:42 +01:00
Updated the hosts variable in the setupacdc.yml file to match the actual hostname 'dc1' instead of 'addc_hostname'. This change ensures that the provisioning task targets the correct host.
Jose added 1 commit 2025-11-02 09:53:13 +01:00
Updated the LXC provision task to include SSH authorized keys and updated package management to install useful packages like nano, tzdata, and openssh-server. This change improves the overall setup process for the DC1 LXC.
Jose added 1 commit 2025-11-02 10:04:35 +01:00
Updated the setupacdc.yml file to include the container's SSH public key for authorized key management, ensuring secure access to the container. This change improves security and reduces manual configuration steps.
Jose added 1 commit 2025-11-02 10:07:10 +01:00
Updated the `container_pubkey` setting in `tasks/setupacdc.yml` to utilize the default public key provided by Ansible, eliminating the need for manual configuration of the SSH public key.
Jose added 1 commit 2025-11-02 10:10:23 +01:00
Changed the way the container public key is set in setupacdc.yml, now it uses the first key from the ssh_public_keys list instead of all keys. This change improves consistency and reduces potential security risks.
Jose added 1 commit 2025-11-02 10:11:46 +01:00
Fixed formatting issue in setupacdc.yml file by updating the ssh-public-keys parameter to use double quotes instead of single quotes. This change ensures consistent and correct parsing of the configuration file.
Jose added 1 commit 2025-11-02 10:21:29 +01:00
Updated the setupacdc.yml configuration to combine SSH public keys into a single file, improving security and organization. This change simplifies the process of managing SSH keys for LXC containers.
Jose added 1 commit 2025-11-02 10:42:21 +01:00
Removed the 'openssh-server' package from the setup script as it's no longer required. This change simplifies the setup process and reduces unnecessary dependencies.
Jose added 1 commit 2025-11-02 10:48:02 +01:00
Updated the timezone parameter in the setupacdc.yml file to include localization_timezone, allowing for more flexible container configuration. This change enables the use of a custom timezone for containers, improving overall flexibility and customization options.
Jose added 1 commit 2025-11-02 10:48:59 +01:00
Updated the list of packages to be installed during setup, removing unnecessary dependencies.
Jose added 1 commit 2025-11-02 11:04:37 +01:00
Updated the setupacdc.yml file to include a new provision for dc1 LXC, added a task to set the timezone using community.general.timezone, and updated package installation. This change enables more flexible container configurations and timezone management.
Jose added 1 commit 2025-11-02 11:06:00 +01:00
Updated the timezone variable in setupacdc.yml from `{{ localization_timezone }}` to `{{ localization_timezone }}`, ensuring consistent formatting and readability.
Jose added 1 commit 2025-11-02 11:11:07 +01:00
Added checks to ensure container has an IP address and SSH is available before proceeding with the setup. This improves the reliability of the setup process.
Jose added 1 commit 2025-11-02 11:59:19 +01:00
Updated the package manager to use apt, added commands to update all packages to their latest version, remove useless packages from the cache, and remove dependencies that are no longer required. This should improve the overall efficiency of the setup process.
Jose added 1 commit 2025-11-02 12:10:47 +01:00
Added a new parameter to the setupacdc.yml file to specify the root filesystem for containers, allowing for more flexible and efficient container setup. This change enables the use of local LVM as the root filesystem for containers, improving overall system performance and security.
Jose added 1 commit 2025-11-02 12:11:08 +01:00
Updated the rootfs configuration in setupacdc.yml to include the local-lvm partition, ensuring consistency with PVE's requirements.
Jose added 1 commit 2025-11-02 12:13:25 +01:00
Updated the rootfs size from a local LVM to a fixed size of 7G, simplifying the configuration process.
Jose added 1 commit 2025-11-02 12:14:54 +01:00
Simplified the rootfs configuration by removing the size parameter and using a single value of 7G, making it consistent with other configurations.
Jose added 1 commit 2025-11-02 12:22:20 +01:00
Updated the rootfs path to use a more efficient storage format, reducing disk space requirements.
Jose added 1 commit 2025-11-02 12:26:09 +01:00
Updated the rootfs size in the setupacdc.yml file to match the new disk size, ensuring consistency with the latest container storage configuration.
Jose added 1 commit 2025-11-02 12:36:23 +01:00
Updated the Ansible playbook to check if a LXC container is running before starting it, and added a conditional statement to start the container only when it's stopped. This change improves the reliability of the setup process.
Jose added 1 commit 2025-11-02 17:06:54 +01:00
Switched from `command` to `shell` in the `pct exec` task for better readability and flexibility.
Checking for merge conflicts…
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin dev:dev
git checkout dev
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Jose/ansible_samba_tasks#1