Install Apache2 to test symlinks management in the ansible manifests
Some checks failed
Lint / test (push) Waiting to run
Trivy / test (push) Waiting to run
CI / test (push) Has been cancelled

This commit is contained in:
Miguel Jacq 2026-01-05 16:48:08 +11:00
parent ca4cf00e84
commit aea58c8684
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9

View file

@ -9,6 +9,10 @@ BUNDLE_DIR="/tmp/bundle"
ANSIBLE_DIR="/tmp/ansible" ANSIBLE_DIR="/tmp/ansible"
rm -rf "${BUNDLE_DIR}" "${ANSIBLE_DIR}" rm -rf "${BUNDLE_DIR}" "${ANSIBLE_DIR}"
# Install something that has symlinks like apache2,
# to extend the manifests that will be linted later
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apache2
# Generate data # Generate data
poetry run \ poetry run \
enroll single-shot \ enroll single-shot \
@ -21,8 +25,10 @@ poetry run \
poetry run \ poetry run \
enroll explain "${BUNDLE_DIR}" --format json | jq enroll explain "${BUNDLE_DIR}" --format json | jq
# Install something, harvest again and diff the harvests # Install/remove something, harvest again and diff the harvests
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cowsay DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cowsay
DEBIAN_FRONTEND=noninteractive apt-get autoremove --purge -y apache2
poetry run \ poetry run \
enroll harvest --out "${BUNDLE_DIR}2" enroll harvest --out "${BUNDLE_DIR}2"
poetry run \ poetry run \