Skip to content
Snippets Groups Projects
Select Git revision
  • e242b00db9be9c26ed51efe8b0fd952cbb59e9ea
  • main default protected
  • Add_buttons_01
3 results

README.md

Blame
  • fejao's avatar
    fejao authored
    1928702a
    History
    README.md 6.60 KiB

    docker-containers role

    This is a ansible-role for dealing with the containers from c3infodesk.

    Requirements

    • To have ansible installed at your system.
    • Set your remote_user configuration at the ansible.cfg file.
    • Set your inventories/host_vars/<TARGET_NAME> file.

    Role Variables

    Here are the variables setted:

    • From: inventories/host_vars/<TARGET_NAME>

      Here are the variables that you should be changing for your own deployment.

      • CUPS

        Here you can set the variables if you want to disable and/or mask the CUPS service at the target.
        • c3infodesk_printer_host_cups_disable: DEFAULT=<NOT_SETTED>
        • c3infodesk_printer_host_cups_mask: DEFAULT=<NOT_SETTED>
      • COMPOSE

        Here you can set the variables if you want to set the docker compose command to up/stop/restart/down
        • c3infodesk_printer_docker_compose_up: DEFAULT=<NOT_SETTED>
        • c3infodesk_printer_docker_compose_stop: DEFAULT=<NOT_SETTED>
        • c3infodesk_printer_docker_compose_restart: DEFAULT=<NOT_SETTED>
        • c3infodesk_printer_docker_compose_down: DEFAULT=<NOT_SETTED>
    • From: inventories/group_vars/<TARGET_GROUP>

      Please don't cahnge the default values at this file. If you need to update them, use the inventories/host_vars/<TARGET_NAME> file.

      At the moment, there's NO VARIABLES setted at the group_vars for this role.

    • From: roles/clone-repositories/defaults/main.yml

      Don't change the values at this file, if you need to change them, change it at the inventories/host_vars/<TARGET_NAME> file

      • CUPS

        • c3infodesk_printer_host_cups_disable: DEFAULT=false
          • If you want to disable the CUPS service at the target system
        • c3infodesk_printer_host_cups_disable_debug: DEFAULT=false
          • If you want to debug disabling CUPS at the target system
        • c3infodesk_printer_host_cups_mask: DEFAULT=false
          • If you want to mask the CUPS service at the target system
      • COMPOSE UP

        • c3infodesk_printer_docker_compose_up: DEFAULT=false
          • If you want to run the command: "docker compose up" at the target host
        • c3infodesk_printer_docker_compose_up_debug: DEFAULT=false
          • If you want to debug running the command: "docker compose up" at the target host
      • COMPOSE STOP

        • c3infodesk_printer_docker_compose_stop: DEFAULT=false
          • If you want to run the command: "docker compose stop" at the target host
        • c3infodesk_printer_docker_compose_stop_debug: DEFAULT=false
          • If you want to debug running the command: "docker compose stop" at the target host
      • COMPOSE RESTART

        • c3infodesk_printer_docker_compose_restart: DEFAULT=false
          • If you want to run the command: "docker compose restart" at the target host
        • c3infodesk_printer_docker_compose_restart_debug: DEFAULT=false
          • If you want to debug running the command: "docker compose restart" at the target host
      • COMPOSE DOWN

        • c3infodesk_printer_docker_compose_down: DEFAULT=false
          • If you want to run the command: "docker compose down" at the target host
        • c3infodesk_printer_docker_compose_down_debug: DEFAULT=false
          • If you want to debug running the command: "docker compose down" at the target host

    Dependencies

    The role dependencies are: