# Installing 8.1.5 via Ansible unattended

**URL:** <https://forum.inductiveautomation.com/t/installing-8-1-5-via-ansible-unattended/48442>\
**Category:** Ignition\
**Created:** [July 2, 2021, 12:10am UTC](https://forum.inductiveautomation.com/t/installing-8-1-5-via-ansible-unattended/48442 "2021-07-02T00:10:55Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vlay](https://avatars.discourse-cdn.com/v4/letter/v/f0a364/32.png) [@vlay](https://forum.inductiveautomation.com/u/vlay)\
**Post date:** [July 2, 2021, 12:10am UTC](https://forum.inductiveautomation.com/t/installing-8-1-5-via-ansible-unattended/48442/1 "2021-07-02T00:10:55Z")

</div>

Hello, I was hoping to get some insight from someone who may have had some experience installing ignition 8.1.5 using Ansible. I was able to run the installation file with the – unattended=none options succesfully but when I’m trying to install via Ansible it just hangs with no error messages or anything happening. I do see that ansible was able to ssh into the system and the logs show that the command was run but it just sits there and doesn’t do anything or give me any errors. If anyone has any experience with automating the install process via Ansible I would love any input into it.

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [July 2, 2021, 2:44pm UTC](https://forum.inductiveautomation.com/t/installing-8-1-5-via-ansible-unattended/48442/2 "2021-07-02T14:44:22Z")

</div>

@vlay, we actually have a ticket logged to address one element that interferes with automated installations that target a non-root user. Thankfully there is a workaround for the behavior that causes an interactive prompt to still be presented (probably what you’re running into). Below is a simple installer task from a playbook that I’ve used before:

```auto
- name: Run Ignition Installer
  command: |
    {{ download_results.dest }}
    --
    location={{ ignition_install_path }}
    serviceName={{ ignition_service_name }}
    user={{ ignition_user }}
    unattended=text
    textMode=true
  environment:
    # These workaround the fact that the installer shell script doesn't accept the user=<install user> when running as root
    SKIP: 1
    CURRENT_USER: "{{ ignition_user }}"
  args:
    creates: "{{ ignition_install_path }}/ignition-gateway"
  register: ignition_install_results

```

I’m attaching the whole solution with the entire playbook (`install-ignition.yml`) for reference. I’ve used it as a baseline for test benches and it works nicely! Obviously you may not need the Vagrant bits, but others may find it interesting.

[forum-48442-ansible-baseline.zip](https://forum.inductiveautomation.com/uploads/short-url/eOcDQ9Q9UY7EucTwLkOCgRz2elC.zip) (7.4 KB) (EDIT: added the missing `installers` folder that was empty/ignored and sniped by my `git archive`)

And an asciinema [demo](https://asciinema.org/a/5E5F1VW446uCwsI9c3ZsnIAyc) for those that are curious 😃:  
 ![forum-48442](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/d/7d92039cd48e810ff08254d9516de04fe85aebaf.gif)

---

<div class="post-metadata">

**Author:** ![vlay](https://avatars.discourse-cdn.com/v4/letter/v/f0a364/32.png) [@vlay](https://forum.inductiveautomation.com/u/vlay)\
**Post date:** [July 4, 2021, 9:11pm UTC](https://forum.inductiveautomation.com/t/installing-8-1-5-via-ansible-unattended/48442/3 "2021-07-04T21:11:55Z")

</div>

Awesome - yeah I found out that I was running into the issue of a prompt coming up asking for a username to be provide since I ran the task with elevated privileges. This is exactly what I was looking for so very much appreciated.

---

<div class="post-metadata">

**Author:** ![Sanat\_Pattanaik](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sanat\_Pattanaik](https://forum.inductiveautomation.com/u/Sanat_Pattanaik)\
**Post date:** [September 6, 2023, 6:53pm UTC](https://forum.inductiveautomation.com/t/installing-8-1-5-via-ansible-unattended/48442/4 "2023-09-06T18:53:47Z")

</div>

Is there anyway to make the default as standard edition in ansible. Currently it is presenting the user to select between maker edition, standard edition and edge edition

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [September 7, 2023, 12:03am UTC](https://forum.inductiveautomation.com/t/installing-8-1-5-via-ansible-unattended/48442/5 "2023-09-07T00:03:23Z")

</div>

You could add a systemd service override file, take a look [at this thread](https://forum.inductiveautomation.com/t/ignition-8-1-commissioning-automation/61034/14) for some inspiration.

---

<div class="post-metadata">

**Author:** ![Sanat\_Pattanaik](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sanat\_Pattanaik](https://forum.inductiveautomation.com/u/Sanat_Pattanaik)\
**Post date:** [September 7, 2023, 9:40pm UTC](https://forum.inductiveautomation.com/t/installing-8-1-5-via-ansible-unattended/48442/6 "2023-09-07T21:40:32Z")

</div>

@kcollins Thank you. I was able to get past that. How do I get the list of parameters I can override. Now I am trying to get past the "enable quick start dialog"  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/9/d914fb4113b1156e562a90cc8f91873757a4d38b.png)

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [September 7, 2023, 9:53pm UTC](https://forum.inductiveautomation.com/t/installing-8-1-5-via-ansible-unattended/48442/7 "2023-09-07T21:53:39Z")

</div>

Most of the environment variables in the [Docker Image documentation](https://docs.inductiveautomation.com/display/DOC81/Docker+Image) are actually built into the platform (and will be recognized by a normal installation as well). You're looking for `DISABLE_QUICKSTART`, which you can set to `true` to disable the quick start prompt on first-launch.

---

<div class="post-metadata">

**Author:** ![Sanat\_Pattanaik](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sanat\_Pattanaik](https://forum.inductiveautomation.com/u/Sanat_Pattanaik)\
**Post date:** [September 9, 2023, 3:17am UTC](https://forum.inductiveautomation.com/t/installing-8-1-5-via-ansible-unattended/48442/8 "2023-09-09T03:17:27Z")

</div>

@kcollins thank you DISABLE\_QUICKSTART worked. Now if I want to load a few selected modules, I set the override parameter Environment="GATEWAY\_MODULES\_ENABLED=enterprise-administration,alarm-notification" But still it loads all the default modules as below instead of only the 2 modules mentioned in the list. Is there anyway to restrict the modules that get loaded

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/7/a715b0e81d3e9bd28ee3ded3badb3455c0e5e1dd.png)

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [September 11, 2023, 1:36pm UTC](https://forum.inductiveautomation.com/t/installing-8-1-5-via-ansible-unattended/48442/9 "2023-09-11T13:36:59Z")

</div>

The Environment Variable `GATEWAY_MODULES_ENABLED` is specific to the Docker image only. For your Ansible automation, simply remove the modules you don't want to have loaded from the filesystem under `user-lib/modules/`.

---

<div class="post-metadata">

**Author:** ![Sanat\_Pattanaik](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sanat\_Pattanaik](https://forum.inductiveautomation.com/u/Sanat_Pattanaik)\
**Post date:** [September 11, 2023, 5:56pm UTC](https://forum.inductiveautomation.com/t/installing-8-1-5-via-ansible-unattended/48442/10 "2023-09-11T17:56:12Z")

</div>

Thank you @kcollins. Is there any way to create DB connection automatically using ansible?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/d/7d921de7d706da2e227c498fc6e78e36ee630833.png)

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [September 11, 2023, 6:07pm UTC](https://forum.inductiveautomation.com/t/installing-8-1-5-via-ansible-unattended/48442/11 "2023-09-11T18:07:42Z")

</div>

> [@Sanat\_Pattanaik](#):
>
> Is there any way to create DB connection automatically using ansible?

No supported way to do that yet...

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 19, 2024, 3:09pm UTC](https://forum.inductiveautomation.com/t/installing-8-1-5-via-ansible-unattended/48442/13 "2024-04-19T15:09:00Z")

</div>

4 posts were merged into an existing topic: [Silent installation of 8.1.25 on Windows vm using Ansible](https://forum.inductiveautomation.com/t/silent-installation-of-8-1-25-on-windows-vm-using-ansible/89109/2)
