A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Re: Hallo - Stikked
From ich, 5 Years ago, written in YAML.
This paste is a reply to Hallo from ich - go back
Embed
Viewing differences between Hallo and Re: Hallo
huhu---
# tasks file for dist_repo
- name: create distribution repository for ecu packages
  block:
  - name: create Packages description
    shell: "dpkg-scanpackages -m . | gzip -c9 > Packages.gz"
    args:
      chdir: "{{local_debian_dir}}"
      creates: "{{local_debian_dir}}/Packages.gz"
    changed_when: false
    delegate_to: localhost

  - name: "create remote upload dir {{remote_debian_dir}}"
    file:
      path: "{{remote_debian_dir}}"
      state: directory
    changed_when: false

  - name: "find all files in {{local_debian_dir}}"
    find:
      paths: "{{local_debian_dir}}"
      file_type: file
      depth: 1
    register: result
    delegate_to: localhost

  - name: copy debian packages
    copy:
      src: "{{item.path}}"
      dest: "{{remote_debian_dir}}"
      directory_mode: yes
    changed_when: false
    with_items: "{{result.files}}"

  - name: create file debian repo
    template:
      src: "source.list"
      dest: "/etc/apt/sources.list.d/ansible.list"
    changed_when: false

  - name: update apt cache
    apt:
      update_cache: "{{update_cache}}"
    changed_when: false
  when: state == "present"

- name: remove distribution repository for ecu packages
  block:
  - name: "remove {{remote_debian_dir}}"
    file:
      path: "{{remote_debian_dir}}"
      state: absent
    changed_when: false
  
  - name: "remove /etc/apt/sources.list.d/ansible.list"
    file:
      path: "/etc/apt/sources.list.d/ansible.list"
      state: absent
    changed_when: false
  when: state == "absent"