ansible-role-sccm-agent
Downloads the SCCM agent binaries and installs to the target machine.
Defined in ./defaults/main.yml
sccm_agent_windows_file_path
smssitecode
fsp
smsmp
sccm_install_cmd
Defined in ./tasks/windows.yml
initialverification
download
unzip
install
wait
finalverification
- ansible-playbook tasks/main.yml -vvv -- --tags="initialverification,download,unzip,install,wait,finalverification"
or
- ansible-playbook tasks/main.yml -vvv -- --tags="download,unzip,install"
Defined in ./requirements.txt
- ansible>=2.9.12
- ansible[azure]
- ansible-lint>=4.2.0
- molecule>=3.0.6
- molecule-azure>=0.3
- yamllint>=1.24.2
- pywinrm>=0.4.1
- junit-xml>=1.9
- requests>=2.24.0
- wheel>=0.30.0
- Create and access your Ansible control node in Azure (can simply be 1x Ubuntu VM, 1x VNET, 1x SUBNET)
git clone https://github.com/globalbao/ansible-role-sccm-agent.git
cd /ansible-role-sccm-agent
./run.sh
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
- Update your Azure & Ansible variables in /molecule/winXXXX/xxx.yml files as required
az login
az subscription set -s SUBSCRIPTIONID
ansible-lint tasks/main.yml
molecule list
molecule create -s winXXXX
molecule converge -s winXXXX
molecule verify -s winXXXX
molecule test -s winXXXX