Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Video: Provision user and ssh key with Ansible on Oracle Linux 8

LinuxVirtTrainTeam-OracleMar 11 2020 — edited Mar 25 2021

pastedImage_1png

About

This video provides instructions for using Ansible with Vagrant to provision an Oracle Linux 8 system with an additional user and ssh key.

Content:

This video discusses the steps needed to create an Ansible script for provisioning an additional user and ssh key beyond the defaults in the standard Oracle Linux Vagrant box deployment.

Prerequisites for this video include installing Vagrant, Ansible, VirtualBox, and the Oracle Vagrant Boxes available on GitHub.

Here are the contents of the playbook.yml covered in the video:

---

- hosts: all

become: yes

tasks:

- name: Add a user with access to sudo

user:

 name: oracle

 password: "{{ 'oracle' | password\_hash('sha512') }}"

 comment: Oracle User

 groups: wheel

 append: yes

 update\_password: on\_create

- name: Set authorized key for user oracle copying it from current user

authorized_key:

 user: oracle

 state: present

 key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/id\_rsa.pub') }}"

Click on the following link to access the video:

https://apexapps.oracle.com/pls/apex/f?p=44785:24:4909255732654::NO:24:P24_CONTENT_ID,P24_PREV_PAGE:28280,1

Additional Resources

If you liked this video, you might also like to see more videos on technologies, software and tools used by Oracle to develop and provision microservices-based applications for deployment in environments that support open standards and specifications.

The following Resource links offer a wealth of additional videos and information on this subject:

Oracle Learning Library – Linux on Oracle Cloud Infrastructure

https://apexapps.oracle.com/pls/apex/f?p=44785:141:9820831669391::NO:RP,141:P141_PAGE_ID,P141_SECTION_ID:534,3686

Oracle Linux 8 Video Learning Library -

https://www.oracle.com/goto/oraclelinuxlearning

Oracle Linux 8 Documentation

https://docs.oracle.com/en/operating-systems/oracle-linux/8/index.html

Comments

Processing

Post Details

Added on Mar 11 2020
1 comment
476 views