ansible / instruqt

Self-paced instruqt Training material
71 stars 59 forks source link

Issue with Writing First Playbook slug ID: playbook-conditionals #530

Closed ArcRiseGen132 closed 9 months ago

ArcRiseGen132 commented 10 months ago

Terminal output is exactly the same as it wants and all packages are installed properly but will not let me continue onto the next step image

leogallego commented 10 months ago

Hello @ArcRiseGen132 , thank you for your report.

Would you mind sharing the error you are getting and the content of the extended_services.yml file? (please use the code (< >) formatting button here in Github to put it into a code block)

By your report, it looks like the issue is probably around the validation of the content of the playbook in the file. It has to be exactly as displayed in the instructions due to technical limitations, we can't validate "similar" or "valid" playbooks that are actually different.

It should look like this:

---
- name: Install extended services
  hosts: all
  become: true
  tasks:
    - name: Install Postfix
      ansible.builtin.package:
        name: postfix
        state: latest
      when: inventory_hostname in groups["web"]
    - name: Install database in corresponding group
      ansible.builtin.package:
        name: postgresql
        state: latest
      when: inventory_hostname in groups["database"]
leogallego commented 9 months ago

Hello @ArcRiseGen132 , I hope the comment above helped you, we will be closing the issue now as we didn't get an update. If you are still running into problems, please share the information requested above and reopen the issue. Thank you!