# roles/el7/tests/test_full.yml
# Test playbook for the EL7 role with role variables set.
#
# The SSH keys for the admin user are stored in tests/sshkey. Check SSH login with e.g.
#
#   ssh -i sshkey/admin_key -p 2222 admin@127.0.0.1
#
# The port number is the forwarded port on the VirtualBox NAT interface that Vagrant also uses to
# connect to the VM.
---

- hosts: all
  sudo: true
  vars:
    el7_admin_user: admin
    el7_admin_ssh_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4MHsjCu/wAKQkwMvMdQuFMPPBXROtz8qA8ayD/opYNkvd7kIp9yv+thl5PNV5Ds/EObDeepKuKEyH1Td54YrQ0VOyKuAl9b6LrXG5ZZg6jzlwPvuWV1YT4AasMfg5Wb60C+lfT/wC52fi3Ls3QUnpj1YV6fcKgnjjjMOlQt+lS1dhMSy7Q2/qLkhhMsTi6jgiG0VbXRXYwedEN7I8wUAguyLJPwDHrEGfZv4WqjvVOx/zM+CEXMCJLY+sbUUlQBVFxfq9pQ8hoVd5sK3/BIuphp7zZFbXZAPy7PBnkmfhuUxROvgnoLzdERF/uSqFTxV4DtBXw3JLvmhd7QxzcU5J admin@example.com'
    el7_install_packages:
      - tree
      - bash-completion
    el7_remove_packages:
      - NetworkManager
      - NetworkManager-glib
      - NetworkManager-tui
      - wpa_supplicant
    el7_repositories:
      - https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
    el7_start_services:
      - sshd
    el7_stop_services:
      - postfix
    el7_user_groups:
      - juniors
      - seniors
    el7_users:
      - name: admin
        comment: Administrator
        groups:
          - seniors
        password: '$6$sPS1h6qt/hYpaChG$zgyO0DPn4k/NaTouvtiEgFXK9obiPQOOYZq4.HnLf8XuVL4hznmQxvCXiY4/y5cGUBrxJWG3frfP/lOWABu2p0'
      - name: joe
        comment: 'Joe Smith'
        groups:
          - juniors
        password: '$6$WIFkXf07Kn3kALDp$fHbqRKztuufS895easdTVAWyVeqVrWcdVMH9jztH2kTOsuCswKFpIijeR/c4QjM6g1ASHjDbeTrwcgEl4Rafk.'
  roles:
    - el7


Test playbook that sets all role variables
Test playbook that sets all role variables
