Pastebin

Paste #8520: None

< previous paste - next paste>

Pasted by ansible@barbera

Download View as text

---
- hosts: axel
  remote_user: root
  tasks:
  - name: ensure packages are installed
    apt: 
      name: "{{ packages }}" 
      state: present
      update_cache: yes
    vars:
        packages:
            # Desktop env
          - kde-l10n-da
          - kde-full
            # Games
          - junior-art
          - junior-config
          - junior-education
          - junior-games-adventure
          - junior-games-arcade
          - junior-games-card
          - junior-games-gl
          - junior-games-net
          - junior-games-puzzle
          - junior-games-sim
          - junior-games-text
          - junior-internet
          - junior-math
          - junior-programming
          - junior-sound
          - junior-system
          - junior-tasks
          - junior-toys
          - junior-typing
          - junior-video
          - junior-writing
          - junior-doc
          - cube2
          - megaglest
            # Danish Language
          - libreoffice-help-da
          - libreoffice-l10n-da
          - idanish
          - aspell-da
          - myspell-da
          - wdanish
          - firefox-esr-l10n-da
          - iceweasel-l10n-da
          - dict-freedict-dan-eng
          - kde-l10n-da
          - hyphen-da
          - mythes-da
          - task-danish-desktop
          - task-danish-kde-desktop
          - education-lang-da


  - name: Create folders
    file:
      path: /{{ item.path }}
      state: directory
      mode: '{{ item.mode }}'
    with_filetree: {{playbook_dir}}/templates/
    when: item.state == 'directory'

  # explicitly skip directories in order to use the 'src' attribute
  - name: Template files
    template:
      src: '{{ item.src }}'
      dest: /{{ item.path }}
      mode: '{{ item.mode }}'
    with_filetree: {{playbook_dir}}/templates/
    when: item.state == 'file'

  - name: Recreate symlinks
    file:
      src: '{{ item.src }}'
      dest: /{{ item.path }}
      state: link
      force: yes
      mode: '{{ item.mode }}'
    with_filetree: {{playbook_dir}}/templates/
    when: item.state == 'link'

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.