1667857080
Installs NTP on Linux.
None.
Available variables are listed below, along with default values (see defaults/main.yml
):
ntp_enabled: true
Whether to start the ntpd service and enable it at system boot. On many virtual machines that run inside a container (like OpenVZ or VirtualBox), it's recommended you don't run the NTP daemon, since the host itself should be set to synchronize time for all its child VMs.
ntp_timezone: Etc/UTC
Set the timezone for your server.
ntp_package: ntp
The package to install which provides NTP functionality. The default is ntp
for most platforms, or chrony
on RHEL/CentOS 7 and later.
ntp_daemon: [various]
The default NTP daemon should be correct for your distribution, but there are some cases where you may want to override the default, e.g. if you're running ntp
on newer versions of RHEL/CentOS.
ntp_config_file: /etc/ntp.conf
The path to the NTP configuration file. The default is /etc/ntp.conf
for most platforms, or /etc/chrony.conf
on RHEL/CentOS 7 and later.
ntp_manage_config: false
Set to true to allow this role to manage the NTP configuration file (/etc/ntp.conf
).
ntp_driftfile: [various]
The default NTP driftfile should be correct for your distribution, but there are some cases where you may want to override the default.
ntp_area: ''
Set the NTP Pool Area to use. Defaults to none, which uses the worldwide pool.
ntp_servers:
- "0{{ '.' + ntp_area if ntp_area else '' }}.pool.ntp.org iburst"
- "1{{ '.' + ntp_area if ntp_area else '' }}.pool.ntp.org iburst"
- "2{{ '.' + ntp_area if ntp_area else '' }}.pool.ntp.org iburst"
- "3{{ '.' + ntp_area if ntp_area else '' }}.pool.ntp.org iburst"
Specify the NTP servers you'd like to use. Only takes effect if you allow this role to manage NTP's configuration, by setting ntp_manage_config
to True
.
ntp_restrict:
- "127.0.0.1"
- "::1"
Restrict NTP access to these hosts; loopback only, by default.
ntp_cron_handler_enabled: false
Whether to restart the cron daemon after the timezone has changed.
ntp_tinker_panic: true
Enable tinker panic, which is useful when running NTP in a VM.
None.
- hosts: all
roles:
- geerlingguy.ntp
Inside vars/main.yml
:
ntp_timezone: America/Chicago
This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.
Author: geerlingguy
Source Code: https://github.com/geerlingguy/ansible-role-ntp
License: MIT license
1621611746
Itching your head due to missing device driver on your machine? Looking for how to install a device drive on a Linux system? Just switched to a new OS, but hardware is not working well? Check out this article to learn how you can install a missing device drive on your Linux system.
Installing and configuring a driver on a Linux based machine is quite daunting for those who just switched to Linux from Windows/Mac, or trying the new OS with dual boot. The widely used windows and Mac operating system often makes it a user-friendly experience when it comes to install device drivers, but in case of a Linux OS, the user might find some of their hardware is not working. Well, this would not be an issue anymore.
Is it challenging to install a device driver on Linux?
For Windows and Mac OS users, it’s really an easy approach to install any device driver as the OS detects those automatically. Also, the users can download the missing ones from the internet, and just click on a simple wizard to have the driver installed.
However, in case of a Linux platform, the process is not enough simple. One of the most common reason is, Linux is an open-source OS and a number of variations available. So, there can’t be a single method that can suit all Linux platforms, and every of the distribution has its own way regarding how to install a device driver on system.
In addition, most of the default Linux drivers are open-source and integrated in the system, and this makes the installation of missing drivers quite complicated, if not included already with OS. Still, most of the useful drivers are automatically detected with popular Linux distros.
Another reason why installing a device driver on a Linux can be complicated is license policies which technically vary among Linux distributions. Such as Fedora restricts to include drivers which are legally prohibited or violate cyber laws. Even Ubuntu asks its users to prevent using closed hardware.
Means, installing a device driver on a Linux can be a bit challenging, but still here mentioned 2 approaches can be helpful.
Two Methods To Find Drivers & Install on Linux
Approach 1: Using Built-in Interface
Approach 2: Using Command Line
#install linux driver #linux driver install #how to install linux driver
1667854980
An Ansible Role that installs Docker on Linux.
None.
Available variables are listed below, along with default values (see defaults/main.yml
):
# Edition can be one of: 'ce' (Community Edition) or 'ee' (Enterprise Edition).
docker_edition: 'ce'
docker_packages:
- "docker-{{ docker_edition }}"
- "docker-{{ docker_edition }}-cli"
- "docker-{{ docker_edition }}-rootless-extras"
docker_packages_state: present
The docker_edition
should be either ce
(Community Edition) or ee
(Enterprise Edition). You can also specify a specific version of Docker to install using the distribution-specific format: Red Hat/CentOS: docker-{{ docker_edition }}-<VERSION>
(Note: you have to add this to all packages); Debian/Ubuntu: docker-{{ docker_edition }}=<VERSION>
(Note: you have to add this to all packages).
You can control whether the package is installed, uninstalled, or at the latest version by setting docker_package_state
to present
, absent
, or latest
, respectively. Note that the Docker daemon will be automatically restarted if the Docker package is updated. This is a side effect of flushing all handlers (running any of the handlers that have been notified by this and any other role up to this point in the play).
docker_service_manage: true
docker_service_state: started
docker_service_enabled: true
docker_restart_handler_state: restarted
Variables to control the state of the docker
service, and whether it should start on boot. If you're installing Docker inside a Docker container without systemd or sysvinit, you should set docker_service_manage
to false
.
docker_install_compose_plugin: false
docker_compose_package: docker-compose-plugin
docker_compose_package_state: present
Docker Compose Plugin installation options. These differ from the below in that docker-compose is installed as a docker plugin (and used with docker compose
) instead of a standalone binary.
docker_install_compose: true
docker_compose_version: "1.26.0"
docker_compose_arch: "{{ ansible_architecture }}"
docker_compose_path: /usr/local/bin/docker-compose
Docker Compose installation options.
docker_repo_url: https://download.docker.com/linux
The main Docker repo URL, common between Debian and RHEL systems.
docker_apt_release_channel: stable
docker_apt_arch: "{{ 'arm64' if ansible_architecture == 'aarch64' else 'amd64' }}"
docker_apt_repository: "deb [arch={{ docker_apt_arch }}] {{ docker_repo_url }}/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} {{ docker_apt_release_channel }}"
docker_apt_ignore_key_error: True
docker_apt_gpg_key: "{{ docker_repo_url }}/{{ ansible_distribution | lower }}/gpg"
(Used only for Debian/Ubuntu.) You can switch the channel to nightly
if you want to use the Nightly release.
You can change docker_apt_gpg_key
to a different url if you are behind a firewall or provide a trustworthy mirror. Usually in combination with changing docker_apt_repository
as well.
docker_yum_repo_url: "{{ docker_repo_url }}/{{ (ansible_distribution == 'Fedora') | ternary('fedora','centos') }}/docker-{{ docker_edition }}.repo"docker_edition }}.repo
docker_yum_repo_enable_nightly: '0'
docker_yum_repo_enable_test: '0'
docker_yum_gpg_key: "{{ docker_repo_url }}/centos/gpg"
(Used only for RedHat/CentOS.) You can enable the Nightly or Test repo by setting the respective vars to 1
.
You can change docker_yum_gpg_key
to a different url if you are behind a firewall or provide a trustworthy mirror. Usually in combination with changing docker_yum_repository
as well.
docker_users:
- user1
- user2
A list of system users to be added to the docker
group (so they can use Docker on the server).
docker_daemon_options:
storage-driver: "devicemapper"
log-opts:
max-size: "100m"
Custom dockerd
options can be configured through this dictionary representing the json file /etc/docker/daemon.json
.
docker
Python library)Many users of this role wish to also use Ansible to then build Docker images and manage Docker containers on the server where Docker is installed. In this case, you can easily add in the docker
Python library using the geerlingguy.pip
role:
- hosts: all
vars:
pip_install_packages:
- name: docker
roles:
- geerlingguy.pip
- geerlingguy.docker
None.
- hosts: all
roles:
- geerlingguy.docker
MIT / BSD
The above sponsor(s) are supporting Jeff Geerling on GitHub Sponsors. You can sponsor Jeff's work too, to help him continue improving these Ansible open source projects!
This role was created in 2017 by Jeff Geerling, author of Ansible for DevOps.
Author: geerlingguy
Source Code: https://github.com/geerlingguy/ansible-role-docker
License: MIT license
1595855400
pgAdmin is the leading graphical Open Source management, development and administration tool for PostgreSQL. pgAdmin4 is a rewrite of the popular pgAdmin3 management tool for the PostgreSQL database.
In this tutorial, we are going to show you how to install pgAdmin4 in Server Mode as a web application using httpd and Wsgi module on CentOS 8.
**01-**To install pgAdmin4 on CentOS 8 we need to add an external repository, so execute the following command:
$ sudo rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-redhat-repo-1-1.noarch.rpm
02- After we add the pgAdmin4 repository, let’s use the below command to install pgAdmin4 as server mode:
$ sudo dnf install pgadmin4-web
03- Before proceeding with the configuration of pgAdmin4, we need to install policycoreutils
tool:
$ dnf install policycoreutils-python-utils
04- Once we done installing pgAdmin4, we need to configure the pgAdmin4 by setting up the initial pgAdmin user account
#databases #linux #ubuntu #install pgadmin4 #install pgadmin4 centos #pgadmin #pgadmin 4 install #pgadmin 4 install centos #pgadmin4 #pgadmin4 install centos
1623125702
VLC (Video LAN Client) is a well known and widely used open source media player that can run various audio-visual files easily. It’s compatible to run almost all mostly used multi-media formats like .vob, .mp4, .mpg, and so on. Even the media player can be used to stream videos from online or local networks as well.
Although, there’s a number of open-source media players available when it comes to present industry, still the VLC is widely used and is must-have application on Linux distributions as well. While speaking about its versions, the latest version of VLC Media Player is 3.0.14. Check Here For Older Versions.
Best Features Of VLC Player 3.0
Uses a hardware decoding system by default to play 4K and 8K video contents.
10bits and HDR support
360 video and 3D audio support
Audio pass through support for HD audio codecs
Allows to stream videos through Chromecast enabled devices
Browsing or local network media streaming support
How to install VLC Media Player On Linux Distros
Since the VLC Media Player is lashed with all latest features and support, you might love to install the app on your Linux platform. So, here we tell you how to install it on Ubuntu, Debian, and Linux Mint distributions.
In order to install VLC Media Player on specified Linux distros, we have 2 approaches, which are discussed below:
Approach 1: Using VLC PPA Repository
sudo add-apt-repository ppa:videolan/stable-daily
sudo apt-get update
sudo apt-get install vlc
Approach 2: Using Snap Store
For Ubuntu Users
sudo apt update
sudo apt install snapd
sudo snap install vlc
For Debian Users
sudo apt update
sudo apt install snapd
sudo snap install core
sudo snap install vlc
https://servonode.com/install-vlc-media-player-on-ubuntu-debian-linux
#install vlc on ubuntu #install vlc on debian #install vlc on linux mint #how to install vlc in linux
1571752812
In this video you will learn Ansible Installation & Configuration on AWS and how to install & configure ansible on ec2 step by step.
Why DevOps is important?
DevOps implementation is going through the roof with most of the largest software organizations around the world invested heavily in its implementation. The core values of devops is effectively based on the Agile Manifesto but with one slight change which moves the focus from creating a working software to one that is more interested in the end-to-end software service mechanism and delivery.
Why should you opt for a DevOps career?
For very long times the development and the operations teams of any software enterprise have stayed at arm’s length. But this organizational cultural shift thanks to devops a lot of changes are happening in forward-thinking enterprises. Learning devops will help you master all the skills needed in order to successfully build, operate, monitor, measure and improve the various processes in IT enterprises by better integrating development and operations. You will grab the best jobs in top MNCs after finishing this Intellipaat devops online training. The entire Intellipaat devops course is in line with the industry needs. There is a huge demand for devops certified professional. The salaries for devops professional are very good.
#Install Ansible #Ansible Installation and Configurationon AWS #Ansible