lxc: copy /etc/profile.d/evolinux.sh from host into container (P10001)
gitea/ansible-roles/pipeline/head This commit looks good Details

This commit is contained in:
William Hirigoyen 2023-03-08 11:09:36 +01:00
parent af569f8c26
commit 4759ed645c
2 changed files with 13 additions and 0 deletions

View File

@ -22,6 +22,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
* apache: add tash for enable mailgraph on default vhost and index.html
* php: add variables php_version when sury is activated for each Debian version
* varnish: add variable varnish_update_config to disable configuration update
* lxc: copy /etc/profile.d/evolinux.sh from host into container
### Changed

View File

@ -56,3 +56,15 @@
lxc_container:
name: "{{ name }}"
state: started
- name: "Ensure /etc/profile.d exists in container"
ansible.builtin.file:
path: "/var/lib/lxc/{{ name }}/rootfs/etc/profile.d"
mode: '0755'
state: directory
- name: "Copy host /etc/profile.d/evolinux into container"
ansible.builtin.copy:
src: "/etc/profile.d/evolinux.sh"
remote_src: true
dest: "/var/lib/lxc/{{ name }}/rootfs/etc/profile.d/evolinux.sh"