ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Are you using AWX ?

    IT Discussion
    awx ansible
    2
    5
    770
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Emad RE
      Emad R
      last edited by Emad R

      Install AWX (Ansible) on Debian 10 "Buster"


      install some basic software

      apt install -y ansible docker docker-compose git python3-docker ansible-tower-cli
      

      start docker and enable autostart

      systemctl enable docker
      systemctl start docker
      

      change default version of python to version 3, I wish someone explain this more

      python -V
      python3 -V
      update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
      update-alternatives --install /usr/bin/python python /usr/bin/python3 2
      

      clone awx

      cd ~
      git clone https://github.com/ansible/awx
      cd ~/awx/installer
      

      changes parameters

      nano inventory
      
      postgres_data_dir="/var/pgdocker"
      docker_compose_dir="/var/lib/awx"
      project_data_dir=/var/awx_projects
      

      install awx

      ansible-playbook install.yml -i inventory
      

      If no errors occurred here, you can enter the host name of the machine in the browser, log in with the user "admin" and the password "password" and get started.

      launch awx on reboot

      crontab -e
      @reboot bash /root/start_awx.sh
      
      
      nano /root/start_awx.sh
      cd /var/lib/awx && docker-compose start
      chmod +x /root/start_awx.sh
      

      stop awx

      nano /root/stop_awx.sh
      cd /var/lib/awx && docker-compose stop
      chmod +x /root/stop_awx.sh
      

      update awx

      cd /var/lib/awx && docker-compose stop
      # bump the version twice here --> /var/lib/awx/docker-compose.yml
      docker-compose pull && docker-compose up --force-recreate -d
      

      change image port settings

      cd /var/lib/awx && docker-compose stop
      nano /var/lib/awx/docker-compose.yml
      cd /var/lib/awx && docker-compose start
      

      source with some changes:

      https://www.andrehotzler.de/en/blog/technology/81-install-awx-ansible-on-debian-10-buster.html

      Backup and Restore AWX

      tower-cli config
      nano ~/.tower_cli.cfg
      
      host: http://127.0.0.1:80
      username: admin
      password: XXXXXXXXXXX
      verify_ssl: False
      
      tower-cli receive --all > awx_backup.json
      tower-cli send awx_backup.json
      
      1 Reply Last reply Reply Quote 1
      • Emad RE
        Emad R
        last edited by

        Approvals system

        Youtube Video

        Emad RE 1 Reply Last reply Reply Quote 0
        • Emad RE
          Emad R @Emad R
          last edited by Emad R

          @Emad-R

          Demo in arabic, yes i made full demo covering most of it, but it is in arabic. I thought I will help "my people" but sadly no interest and I dont feel like doing another one in English 😞 so enjoy 🙂

          Youtube Video

          1 Reply Last reply Reply Quote 0
          • travisdh1T
            travisdh1
            last edited by

            Have the developers gotten it to be stable in the past year? When I looked at it a bit over a year ago, you couldn't install it the same way twice and get a working system.

            Emad RE 1 Reply Last reply Reply Quote 0
            • Emad RE
              Emad R @travisdh1
              last edited by

              @travisdh1

              yh all works just the import/export thing is not 100% if you have 2 awx instances

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post