main-playbook.yml #2

  • //
  • guest/
  • russell_jackson/
  • ansible-sdp/
  • main-playbook.yml
  • View
  • Commits
  • Open Download .zip Download (943 B)
- hosts: "all"
  strategy: linear
  vars:
    update_perforce: false
  become: yes
  roles:
    - { role: 'perforce-sdp-install', when: install_perforce | default(false) | bool }
    - { role: 'perforce-sdp-monitoring', when: monitor_perforce | default(false) | bool }
  tasks:
    - import_role:
        name: "perforce-sdp-install"
        tasks_from: update
      when: update_perforce | default(false) | bool

    - import_role:
        name: "perforce-sdp-install"
        tasks_from: dependencies
      when: update_depend | default(false) | bool

    - import_role:
        name: "perforce-sdp-install"
        tasks_from: cron
      when: update_cron | default(false) | bool

    - import_role:
        name: "perforce-sdp-install"
        tasks_from: sudo
      when: update_sudo | default(false) | bool

    - import_role:
        name: "perforce-sdp-install"
        tasks_from: cert
      when: update_cert | default(false) | bool
# Change User Description Committed
#2 32492 Russell C. Jackson (Rusty) Fix bugs, remove orphaned files, and apply best practices to ansible-sdp

- Fix broken Jinja2 filter syntax (|bool|) in main-playbook.yml
- Fix target_server logic comparing string literals instead of variables
- Fix package install failing on RedHat due to missing OS family guard
- Split packages into OS-agnostic and Debian-specific lists, remove duplicates
- Switch all binary downloads from HTTP to HTTPS
- Remove 7 orphaned files (unused templates, scripts, configs)
- Replace hardcoded emails in cron with template variables
- Fix inconsistent journal rotations (06:00/08:00) to use rotate_journal.sh
- Parameterize admin sudoers and perforce user password
- Fix ansible.cfg malformed vars block
- Fix ansibleuser sudo group for RedHat (wheel) vs Debian (sudo)
- Remove redundant triple broker start/restart in install.yml
- Replace shell sed with ansible.builtin.replace in monitoring role
- Fix duplicate handler and undefined variable in monitoring handlers
- Use notify handlers instead of inline commands for sysctl/THP
- Add idempotency (creates:) to pyenv install
#1 32488 Russell C. Jackson (Rusty) Ansible scaffolding for the sdp - Needs work.