ansible/roles/steamcmd/tasks/main.yml

35 lines
765 B
YAML
Raw Normal View History

#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Install steamcmd
block:
- name: Enable i386 architecture
lineinfile:
dest: /var/lib/dpkg/arch
line: i386
create: yes
register: add_i386
- name: Update repos
apt:
update_cache: yes
when: add_i386 is changed
- name: Configure debconf
debconf:
name: steamcmd
question: "steam/question"
value: "I AGREE"
vtype: string
- name: Install steamcmd
apt:
name: steamcmd
environment:
ACCEPT_EULA: "Y"
- name: Create steamcmd user
user:
name: steamcmd
password: "!"
home: "/var/steam"
shell: "/bin/bash"
system: yes
become: yes