Sign in Join
Wiki copytemporary

Installation on Linux with Ansible: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Installation on Linux with Ansible

OldNewLine
1+## Headless installation (fpclazup)
2+
3+File lazarus_vars.yml containing the user under which Lazarus should be installed:
4+
5+``` yaml
6+---
7+lazarus_user: "lazar"
8+```
9+
10+The actual playbook:
11+
12+``` yaml
13+---
14+- hosts: 192.168.1.43
15+ vars_files:
16+ - lazarus_vars.yml
17+
18+ tasks:
19+
20+# prerequisites
21+ - name: update packages
22+ become: yes
23+ apt: "update_cache=yes"
24+
25+ - name: install dependencies
26+ become: yes
27+ apt: name= state=latest
28+ with_items:
29+ - "make"
30+ - "binutils"
31+ - "build-essential"
32+ - "gdb"
33+ - "subversion"
34+ - "zip"
35+ - "unzip"
36+ - "libx11-dev"
37+ - "libgtk2.0-dev"
38+ - "libgdk-pixbuf2.0-dev"
39+ - "libcairo2-dev"
40+ - "libpango1.0-dev"
41+ - "unrar"
42+ - "libxtst-dev"
43+ - "libgl1-mesa-dev"
44+ - "libatk-adaptor"
45+
46+ - name: create user for Lazarus installation
47+ become: yes
48+ user: name=""
49+
50+ - name: get url for latest fpclazup
51+ local_action:
52+ module: uri
53+ url: https://api.github.com/repos/LongDirtyAnimAlf/Reiniero-fpcup/releases/latest
54+ return_content: yes
55+ method: GET
56+ register: json_info
57+
58+ - name: download latest fpclazup
59+ become: yes
60+ become-user: ""
61+ get_url:
62+ url: ""
63+ dest: "/home//"
64+
65+ - name: make downloaded executable
66+ become: yes
67+ become-user: ""
68+ shell: chmod +x /home//fpclazup-x86_64-linux
69+
70+ - name: install 64bit
71+ become: yes
72+ become-user: ""
73+ shell: /home//fpclazup-x86_64-linux --fpcURL="stable" --lazURL="stable" --installdir=usr/share/fpclazstable --fpcsplit --noconfirm
74+```
75+
76+## Installer with GUI (Fpcupdeluxe)
77+
78+File lazarus_vars.yml containing the user under which Lazarus should be installed:
79+
80+``` yaml
81+---
82+lazarus_user: "lazar"
83+```
84+
85+The actual playbook:
86+
87+``` yaml
88+---
89+- hosts: 192.168.1.43
90+ vars_files:
91+ - lazarus_vars.yml
92+
93+ tasks:
94+
95+# prerequisites
96+ - name: update packages
97+ become: yes
98+ apt: "update_cache=yes"
99+
100+ - name: install dependencies
101+ become: yes
102+ apt: name= state=latest
103+ with_items:
104+ - "make"
105+ - "binutils"
106+ - "build-essential"
107+ - "gdb"
108+ - "subversion"
109+ - "zip"
110+ - "unzip"
111+ - "libx11-dev"
112+ - "libgtk2.0-dev"
113+ - "libgdk-pixbuf2.0-dev"
114+ - "libcairo2-dev"
115+ - "libpango1.0-dev"
116+ - "unrar"
117+ - "libxtst-dev"
118+ - "libgl1-mesa-dev"
119+ - "libatk-adaptor"
120+
121+ - name: create user for Lazarus installation
122+ become: yes
123+ user: name=""
124+
125+ - name: get url for latest FPCUPDeluxe
126+ local_action:
127+ module: uri
128+ url: https://api.github.com/repos/newpascal/fpcupdeluxe/releases/latest
129+ return_content: yes
130+ method: GET
131+ register: json_info
132+
133+ - name: download latest FPCUPDeluxe
134+ become: yes
135+ become-user: ""
136+ get_url:
137+ url: ""
138+ dest: "/home//"
139+
140+ - name: make downloaded executable
141+ become: yes
142+ become-user: ""
143+ shell: chmod +x /home//fpcupdeluxe-x86_64-linux
144+```
145+
146+---
147+*From the Free Pascal wiki, page "Installation on Linux with Ansible", as it stood on 2018-06-25 after a change by Serbod, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
148+Category: Install

Back to history